Update
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
const getLocalizedData = async (locale) => {
|
||||
const response = await fetch(`../public/lang/${locale}.json`); // Mengambil file lokal berdasarkan bahasa yang dipilih
|
||||
const response = await fetch(`../public/image/${locale}.json`); // Mengambil file lokal berdasarkan bahasa yang dipilih
|
||||
const data = await response.json();
|
||||
return data;
|
||||
};
|
||||
|
||||
@@ -13,12 +13,12 @@ const LANGS = [
|
||||
{
|
||||
label: 'Bahasa Indonesia',
|
||||
value: 'id-ID',
|
||||
icon: '/image/overlay.png',
|
||||
icon: '/image/ic_flag_id.svg',
|
||||
},
|
||||
{
|
||||
label: 'English',
|
||||
value: 'en-US',
|
||||
icon: '/icons/ic_flag_en.svg',
|
||||
icon: '/image/ic_flag_en.svg',
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user