Skip to content

Commit e78369a

Browse files
fredguthAndreyNenashev
authored andcommitted
feat brazilian portuguese translation
1 parent 53408d6 commit e78369a

File tree

3 files changed

+430
-1
lines changed

3 files changed

+430
-1
lines changed

odd-platform-ui/src/lib/constants.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ export const LANGUAGES_MAP = {
148148
fr: 'French',
149149
ua: 'Ukrainian',
150150
hy: 'Armenian',
151+
br: 'Brazilian Portuguese',
151152
} as const;
152153

153154
export const LANG_TO_COUNTRY_CODE_MAP = {
@@ -157,6 +158,7 @@ export const LANG_TO_COUNTRY_CODE_MAP = {
157158
fr: 'fr',
158159
ua: 'ua',
159160
hy: 'am',
161+
br: 'br',
160162
} as const;
161163

162164
// regexp

odd-platform-ui/src/locales/i18n.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import ch from './translations/ch.json';
66
import fr from './translations/fr.json';
77
import ua from './translations/ua.json';
88
import hy from './translations/hy.json';
9+
import br from './translations/br.json';
910

1011
const resources = {
1112
en: { translation: en },
@@ -14,6 +15,7 @@ const resources = {
1415
fr: { translation: fr },
1516
ua: { translation: ua },
1617
hy: { translation: hy },
18+
br: { translation: br },
1719
};
1820

1921
const languages = Object.keys(resources);
@@ -27,7 +29,7 @@ const savedLanguage = languages.includes(storedLanguage)
2729
i18n.use(initReactI18next).init({
2830
resources,
2931
lng: savedLanguage,
30-
fallbackLng: ['en', 'es', 'ch', 'fr', 'ua', 'hy'],
32+
fallbackLng: ['en', 'es', 'br', 'ch', 'fr', 'ua', 'hy'],
3133
});
3234

3335
export default i18n;

0 commit comments

Comments
 (0)