feat(i18n): add language switcher
This commit is contained in:
@@ -26,6 +26,24 @@ describe("i18n dictionaries", () => {
|
||||
})
|
||||
})
|
||||
|
||||
it("provides localized language switcher copy for English and Spanish", () => {
|
||||
expect(getDictionary("en").common.languageSwitcher).toEqual({
|
||||
label: "Language",
|
||||
options: {
|
||||
en: "English",
|
||||
es: "Spanish",
|
||||
},
|
||||
})
|
||||
|
||||
expect(getDictionary("es").common.languageSwitcher).toEqual({
|
||||
label: "Idioma",
|
||||
options: {
|
||||
en: "Inglés",
|
||||
es: "Español",
|
||||
},
|
||||
})
|
||||
})
|
||||
|
||||
it("keeps dashboard home dictionary keys aligned across locales", () => {
|
||||
expect(getDictionary("en").dashboardHome).toEqual({
|
||||
heading: "Dashboard",
|
||||
|
||||
Reference in New Issue
Block a user