mirror of
https://github.com/MadeBaruna/paimon-moe.git
synced 2024-11-23 07:17:43 +01:00
Fix locale label for other than english/indonesia
This commit is contained in:
parent
7ca1b28cea
commit
858856e7f2
1 changed files with 2 additions and 2 deletions
|
@ -23,8 +23,8 @@
|
|||
{ id: 'en', label: 'English' },
|
||||
{ id: 'id', label: 'Indonesia' },
|
||||
];
|
||||
$: locales = languages.filter((e) => e.id !== $locale.substring(0, 2));
|
||||
$: currentLocale = languages.find((e) => e.id === $locale.substring(0, 2));
|
||||
$: currentLocale = languages.find((e) => e.id === $locale.substring(0, 2)) || { id: 'en', label: 'English' };
|
||||
$: locales = languages.filter((e) => e.id !== currentLocale.id);
|
||||
|
||||
function openDonationModal() {
|
||||
openModal(
|
||||
|
|
Loading…
Reference in a new issue