mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
client: Add country flags to language selection
This commit is contained in:
parent
e086ba5eb4
commit
aa5a7294df
@ -32,7 +32,7 @@ export default class LocalizationOptions extends OptionsWidget {
|
|||||||
for (const locale of availableLocales) {
|
for (const locale of availableLocales) {
|
||||||
this.$localeSelect.append($("<option>")
|
this.$localeSelect.append($("<option>")
|
||||||
.attr("value", locale.id)
|
.attr("value", locale.id)
|
||||||
.text(locale.name));
|
.text(`${locale.flag} ${locale.name}`));
|
||||||
}
|
}
|
||||||
|
|
||||||
this.$localeSelect.val(options.locale);
|
this.$localeSelect.val(options.locale);
|
||||||
|
@ -135,11 +135,13 @@ function getSupportedLocales() {
|
|||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
"id": "en",
|
"id": "en",
|
||||||
"name": "English"
|
"flag": "🇺🇸",
|
||||||
|
"name": "English (United States)"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "cn",
|
"id": "cn",
|
||||||
"name": "Chinese"
|
"flag": "🇨🇳",
|
||||||
|
"name": "Chinese (China)"
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user