Update validation, dll Hospital-Portal
This commit is contained in:
7
frontend/hospital-portal/src/LocalizationUtil.ts
Normal file
7
frontend/hospital-portal/src/LocalizationUtil.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
const getLocalizedData = async (locale) => {
|
||||
const response = await fetch(`../public/lang/${locale}.json`); // Mengambil file lokal berdasarkan bahasa yang dipilih
|
||||
const data = await response.json();
|
||||
return data;
|
||||
};
|
||||
|
||||
export default getLocalizedData;
|
||||
Reference in New Issue
Block a user