✏️(frontend) fix minor typo in i18n hook
Oupsi, found a typo and fixed it.
This commit is contained in:
committed by
aleb_the_flash
parent
d406f31bd8
commit
1970a4d6b1
@@ -1,6 +1,6 @@
|
||||
import { useTranslation } from 'react-i18next'
|
||||
|
||||
const langageLabels: Record<string, string> = {
|
||||
const languageLabels: Record<string, string> = {
|
||||
en: 'English',
|
||||
fr: 'Français',
|
||||
de: 'Deutsch',
|
||||
@@ -14,13 +14,13 @@ export const useLanguageLabels = () => {
|
||||
)
|
||||
const languagesList = supportedLanguages.map((lang) => ({
|
||||
value: lang,
|
||||
label: langageLabels[lang],
|
||||
label: languageLabels[lang],
|
||||
}))
|
||||
return {
|
||||
languagesList,
|
||||
currentLanguage: {
|
||||
key: i18n.language,
|
||||
label: langageLabels[i18n.language],
|
||||
label: languageLabels[i18n.language],
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user