Skip to content

Commit 7bdddd8

Browse files
committed
feat: add Serbian and Danish country codes to ISO mapping and log language processing
1 parent c5cbdcd commit 7bdddd8

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ const countryISO31661ByLangISO6391 = {
3535
ja: 'jp', // Japanese → Japan
3636
uk: 'ua', // Ukrainian → Ukraine
3737
ur: 'pk', // Urdu → Pakistan
38+
sr: 'rs', // Serbian → Serbia
39+
da: 'dk' // Danish → Denmark
3840
};
3941

4042
function getCountryCodeFromLangCode(lang: SupportedLanguage) {
@@ -930,6 +932,8 @@ export default class I18nPlugin extends AdminForthPlugin {
930932
typeof getFlagEmoji === 'function'
931933
? getFlagEmoji
932934
: getFlagEmoji.default;
935+
936+
console.log('🪲languagesList for lang:', lang, 'country code:', getCountryCodeFromLangCode(lang));
933937

934938
return {
935939
code: lang,

0 commit comments

Comments
 (0)