mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 11:26:15 +01:00
client: Remove flags from language selection to avoid potential political issues
This commit is contained in:
@@ -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.flag} ${locale.name}`));
|
.text(locale.name));
|
||||||
}
|
}
|
||||||
|
|
||||||
this.$localeSelect.val(options.locale);
|
this.$localeSelect.val(options.locale);
|
||||||
|
|||||||
@@ -135,13 +135,11 @@ function getSupportedLocales() {
|
|||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
"id": "en",
|
"id": "en",
|
||||||
"flag": "🇺🇸",
|
"name": "English"
|
||||||
"name": "English (United States)"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "cn",
|
"id": "cn",
|
||||||
"flag": "🇨🇳",
|
"name": "Chinese"
|
||||||
"name": "Chinese (China)"
|
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user