Skip to content

Commit 56b79ff

Browse files
authored
feat(i18n): add Estonian language support (#2611)
1 parent 20c2ed8 commit 56b79ff

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

server/api/tvdb/interfaces.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ const TMDB_TO_TVDB_MAPPING: Record<string, string> & {
166166
el: 'ell', // Greek
167167
en: 'eng', // English
168168
es: 'spa', // Spanish
169+
et: 'est', // Estonian
169170
fi: 'fin', // Finnish
170171
fr: 'fra', // French
171172
he: 'heb', // Hebrew

server/types/languages.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export type AvailableLocale =
99
| 'el'
1010
| 'es'
1111
| 'es-MX'
12+
| 'et'
1213
| 'fi'
1314
| 'fr'
1415
| 'hr'

src/context/LanguageContext.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ export const availableLanguages: AvailableLanguageObject = {
3939
code: 'es-MX',
4040
display: 'Español (Latinoamérica)',
4141
},
42+
et: {
43+
code: 'et',
44+
display: 'Eesti',
45+
},
4246
fi: {
4347
code: 'fi',
4448
display: 'Finnish',

src/pages/_app.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ const loadLocaleData = (locale: AvailableLocale): Promise<any> => {
4747
return import('../i18n/locale/es.json');
4848
case 'es-MX':
4949
return import('../i18n/locale/es_MX.json');
50+
case 'et':
51+
return import('../i18n/locale/et.json');
5052
case 'fi':
5153
return import('../i18n/locale/fi.json');
5254
case 'fr':

0 commit comments

Comments
 (0)