Skip to content

Commit

Permalink
Add 'multi' language option (#1314)
Browse files Browse the repository at this point in the history
* Added plugin settings

* Get plugin settings from plugin.

* Added multi language option

* Translate multi string

---------

Co-authored-by: nyagami <[email protected]>
  • Loading branch information
NilSilva and nyagami authored Nov 26, 2024
1 parent 4bcd22b commit 169c4b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/utils/constants/languages.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// references:
// https://en.wikipedia.org/wiki/IETF_language_tag
// https://en.wikipedia.org/wiki/List_of_language_names
import { getString } from '@strings/translations';

export const languagesMapping: Record<string, string> = {
'id': 'Bahasa Indonesia',
Expand All @@ -18,6 +19,7 @@ export const languagesMapping: Record<string, string> = {
'zh': '中文, 汉语, 漢語',
'ja': '日本語',
'ko': '조선말, 한국어',
'multi': getString('browseSettingsScreen.multi'),
};

export const languages = Object.values(languagesMapping);
1 change: 1 addition & 0 deletions strings/languages/en/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@
"browseSettings": "Browse Settings",
"browseSettingsScreen": {
"concurrentSearches": "Concurrent Source Searches",
"multi": "Multi",
"languages": "Languages"
},
"categories": {
Expand Down

0 comments on commit 169c4b9

Please sign in to comment.