Fix locale label for other than english/indonesia
parent
7ca1b28cea
commit
858856e7f2
|
@ -23,8 +23,8 @@
|
||||||
{ id: 'en', label: 'English' },
|
{ id: 'en', label: 'English' },
|
||||||
{ id: 'id', label: 'Indonesia' },
|
{ id: 'id', label: 'Indonesia' },
|
||||||
];
|
];
|
||||||
$: locales = languages.filter((e) => e.id !== $locale.substring(0, 2));
|
$: currentLocale = languages.find((e) => e.id === $locale.substring(0, 2)) || { id: 'en', label: 'English' };
|
||||||
$: currentLocale = languages.find((e) => e.id === $locale.substring(0, 2));
|
$: locales = languages.filter((e) => e.id !== currentLocale.id);
|
||||||
|
|
||||||
function openDonationModal() {
|
function openDonationModal() {
|
||||||
openModal(
|
openModal(
|
||||||
|
|
Loading…
Reference in New Issue