Implemented Danish language in selector

This commit is contained in:
Donkie
2023-12-17 20:10:48 +01:00
parent a1ab9a6c0f
commit cf417845e9

View File

@@ -9,6 +9,13 @@ interface Language {
fullCode: string; fullCode: string;
} }
/**
* List of languages to load
* The key of each object is the folder name in the locales dir.
* name: Name of the language in the list
* countryCode: Country code of the country's flag to display for this language
* fullCode: Full language code, used for Ant Design's locale
*/
export const languages: { [key: string]: Language } = { export const languages: { [key: string]: Language } = {
["en"]: { ["en"]: {
name: "English", name: "English",
@@ -85,6 +92,11 @@ export const languages: { [key: string]: Language } = {
countryCode: "gr", countryCode: "gr",
fullCode: "el-GR", fullCode: "el-GR",
}, },
["da"]: {
name: "Dansk",
countryCode: "dk",
fullCode: "da-DK",
},
}; };
i18n i18n