diff options
author | David Mehren | 2021-04-25 22:28:42 +0200 |
---|---|---|
committer | David Mehren | 2021-04-26 21:42:06 +0200 |
commit | 837cf59ef9f27d8cbc6d77120304d8dcf8e7e9bb (patch) | |
tree | 649946291e01ebd570229b1056b1338d7eb05847 /public | |
parent | e4c8f869f008d1389bba92987231df0406b6b828 (diff) |
Add support for freshly imported languages
New languages: bg, fa, gl, he, hu, oc, pt-br
Signed-off-by: David Mehren <git@herrmehren.de>
Diffstat (limited to 'public')
-rw-r--r-- | public/js/locale.js | 3 | ||||
-rw-r--r-- | public/views/index/body.ejs | 7 |
2 files changed, 9 insertions, 1 deletions
diff --git a/public/js/locale.js b/public/js/locale.js index 8baa77fc..2470bd53 100644 --- a/public/js/locale.js +++ b/public/js/locale.js @@ -1,7 +1,8 @@ /* eslint-env browser, jquery */ /* global Cookies */ -const supported = ['en', 'zh-CN', 'zh-TW', 'fr', 'de', 'ja', 'es', 'ca', 'el', 'pt', 'it', 'tr', 'ru', 'nl', 'hr', 'pl', 'uk', 'hi', 'sv', 'eo', 'da', 'ko', 'id', 'sr', 'vi', 'ar', 'cs', 'sk'] +const supported = ['en', 'zh-CN', 'zh-TW', 'fr', 'de', 'ja', 'es', 'ca', 'el', 'pt', 'it', 'tr', 'ru', 'nl', 'hr', 'pl', + 'uk', 'hi', 'sv', 'eo', 'da', 'ko', 'id', 'sr', 'vi', 'ar', 'cs', 'sk', 'ml', 'bg', 'fa', 'gl', 'he', 'hu', 'oc', 'pt-br'] function detectLang () { if (Cookies.get('locale')) { diff --git a/public/views/index/body.ejs b/public/views/index/body.ejs index 5ae462d9..54d2b32f 100644 --- a/public/views/index/body.ejs +++ b/public/views/index/body.ejs @@ -157,6 +157,13 @@ <option value="cs">Česky</option> <option value="sk">Slovensky</option> <option value="ml">മലയാളം</option> + <option value="bg">български език</option> + <option value="fa">فارسی</option> + <option value="gl">Galego</option> + <option value="he">עברית</option> + <option value="hu">Magyar</option> + <option value="oc">Occitan</option> + <option value="pt-br">Português do Brasil</option> </select> <p> <%- __('Powered by %s', '<a href="https://hedgedoc.org">HedgeDoc</a>') %> | <a href="<%- serverURL %>/s/release-notes" target="_blank" rel="noopener"><%= __('Releases') %></a> | <a href="<%- sourceURL %>" target="_blank" rel="noopener"><%= __('Source Code') %></a><% if(imprint) { %> | <a href="<%- serverURL %>/s/imprint" target="_blank" rel="noopener"><%= __('Imprint') %></a><% } %><% if(privacyStatement) { %> | <a href="<%- serverURL %>/s/privacy" target="_blank" rel="noopener"><%= __('Privacy') %></a><% } %><% if(termsOfUse) { %> | <a href="<%- serverURL %>/s/terms-of-use" target="_blank" rel="noopener"><%= __('Terms of Use') %></a><% } %> |