We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b9e3d7 commit 9ab057dCopy full SHA for 9ab057d
packages/translations/src/utilities/getTranslation.ts
@@ -26,7 +26,8 @@ export const getTranslation = <T extends LabelType>(
26
}
27
28
const fallbackLang = fallbacks.find((language) => label[language])
29
- return fallbackLang && label[fallbackLang] ? fallbackLang : label[Object.keys(label)[0]]
+
30
+ return fallbackLang && label[fallbackLang] ? label[fallbackLang] : label[Object.keys(label)[0]]
31
32
33
if (typeof label === 'function') {
0 commit comments