diff --git a/cspell.json b/cspell.json index f7c147f40..8440acdc2 100644 --- a/cspell.json +++ b/cspell.json @@ -25,5 +25,5 @@ // flagWords - list of words to be always considered incorrect // This is useful for offensive words and common spelling errors. // cSpell:disable (don't complain about the words we listed here) - "flagWords": ["hte"] + "flagWords": ["hte", "comunity"] } diff --git a/src/lib/components/general/TranslationDropdown.svelte b/src/lib/components/general/TranslationDropdown.svelte index ddcfb5c67..15c8225e3 100644 --- a/src/lib/components/general/TranslationDropdown.svelte +++ b/src/lib/components/general/TranslationDropdown.svelte @@ -8,23 +8,45 @@ export const { t } = getTranslate(); - const languages = { + type language = { + name: string; + flag: string; + style?: string; + }; + + const defaultFlagTextStyle = 'text-white'; + + // cspell:disable + const languages: Record = { en: { name: 'English', flag: '🇺🇳' }, de: { name: 'Deutsch', - flag: '🇩🇪' + flag: '🇩🇪', + style: 'text-black' // Bug in something? text color affects the top stripe of the DE flag + }, + es: { + name: 'Español', + flag: '🇪🇸' }, fr: { name: 'Français', flag: '🇫🇷' }, + hu: { + name: 'Magyar', + flag: '🇭🇺' + }, it: { name: 'Italiano', flag: '🇮🇹' }, + ko: { + name: '한국어', + flag: '🇰🇷' + }, lv: { name: 'Latviešu', flag: '🇱🇻' @@ -37,6 +59,10 @@ name: 'Nederlands', flag: '🇳🇱' }, + 'pt-BR': { + name: 'Português (Brasil)', + flag: '🇧🇷' + }, pl: { name: 'Polski', flag: '🇵🇱' @@ -54,6 +80,7 @@ flag: '🇹🇼' } } as const; + // cspell:enable const lang = writable((browser && localStorage.getItem('language')) || $tolgee.getLanguage()); lang.subscribe((l) => { @@ -73,17 +100,17 @@ -
+