✏️(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'
|
import { useTranslation } from 'react-i18next'
|
||||||
|
|
||||||
const langageLabels: Record<string, string> = {
|
const languageLabels: Record<string, string> = {
|
||||||
en: 'English',
|
en: 'English',
|
||||||
fr: 'Français',
|
fr: 'Français',
|
||||||
de: 'Deutsch',
|
de: 'Deutsch',
|
||||||
@@ -14,13 +14,13 @@ export const useLanguageLabels = () => {
|
|||||||
)
|
)
|
||||||
const languagesList = supportedLanguages.map((lang) => ({
|
const languagesList = supportedLanguages.map((lang) => ({
|
||||||
value: lang,
|
value: lang,
|
||||||
label: langageLabels[lang],
|
label: languageLabels[lang],
|
||||||
}))
|
}))
|
||||||
return {
|
return {
|
||||||
languagesList,
|
languagesList,
|
||||||
currentLanguage: {
|
currentLanguage: {
|
||||||
key: i18n.language,
|
key: i18n.language,
|
||||||
label: langageLabels[i18n.language],
|
label: languageLabels[i18n.language],
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user