Add support for indonesia language (id_ID) (#94)

* Add support for indonesia language (id_ID)
This commit is contained in:
kakandavorever
2023-03-30 13:47:57 +07:00
committed by GitHub
parent e8c1a75a46
commit 2c79bf22df
2 changed files with 11 additions and 0 deletions

7
src/i18n/id_ID.json Normal file
View File

@@ -0,0 +1,7 @@
{
"localLanguage": "bahasa",
"commitFix": "fix(server.ts): mengubah huruf port variable dari huruf kecil ke huruf besar PORT",
"commitFeat": "feat(server.ts): menambahkan support di process.env.PORT environment variabel",
"commitDescriptions":
"Port variabel bernama PORT, yang membantu konsistensi dengan memberi nama yaitu PORT yang konstan. Bantuan environment variabel membantu aplikasi lebih fleksibel, dan dapat di jalankan di port manapun yang tertulis pada process.env.PORT"
}

View File

@@ -12,6 +12,7 @@ import es_ES from '../i18n/es_ES.json' assert { type: 'json' };
import sv from '../i18n/sv.json' assert { type: 'json' };
import nl from '../i18n/nl.json' assert { type: 'json' };
import ru from '../i18n/ru.json' assert { type: 'json' };
import id_ID from '../i18n/id_ID.json' assert { type: 'json'};
export enum I18nLocals {
'en' = 'en',
@@ -27,6 +28,7 @@ export enum I18nLocals {
'es_ES' = 'es_ES',
'sv' = 'sv',
'ru' = 'ru',
'id_ID' = 'id_ID',
};
export const i18n = {
@@ -42,6 +44,7 @@ export const i18n = {
vi_VN,
es_ES,
sv,
id_ID,
nl,
ru
};
@@ -61,6 +64,7 @@ export const I18N_CONFIG_ALIAS: { [key: string]: string[] } = {
es_ES: ['es_ES', 'Spanish', 'español'],
sv: ['sv', 'Swedish', 'Svenska'],
ru: ['ru', 'Russian', 'русский'],
id_ID: ['id_ID', 'Bahasa', 'bahasa'],
};
export function getI18nLocal(value: string): string | boolean {