Skip to content

Commit f1d898b

Browse files
Cleanup of un-used translations
1 parent 53b682d commit f1d898b

File tree

5 files changed

+2
-90
lines changed

5 files changed

+2
-90
lines changed

babel.i18next-extract.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"contextSeparator": "__",
88
"defaultContexts": [""],
99
"defaultNS": "en",
10-
"locales": ["nl", "en", "it", "tr", "fr", "es", "hi", "ru", "pt"],
10+
"locales": ["nl", "en", "it", "tr", "fr", "hi", "ru"],
1111
"jsonSpace": 4,
1212
"keySeparator": null,
1313
"nsSeparator": null,

src/i18n/es.json

Lines changed: 0 additions & 42 deletions
This file was deleted.

src/i18n/index.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import ruTranslations from '../i18n/ru.json';
44
import trTranslations from '../i18n/tr.json';
55
import frTranslations from '../i18n/fr.json';
66
import hiTranslations from '../i18n/hi.json';
7-
import esTranslations from '../i18n/es.json';
87
import itTranslations from '../i18n/it.json';
98

109
export {
@@ -15,5 +14,4 @@ export {
1514
frTranslations,
1615
hiTranslations,
1716
itTranslations,
18-
esTranslations,
1917
};

src/i18n/pt.json

Lines changed: 0 additions & 42 deletions
This file was deleted.

src/utils/Streami18n.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import {
88
frTranslations,
99
hiTranslations,
1010
itTranslations,
11-
esTranslations,
1211
} from '../i18n';
1312

1413
import 'moment/locale/nl';
@@ -17,7 +16,6 @@ import 'moment/locale/ru';
1716
import 'moment/locale/tr';
1817
import 'moment/locale/fr';
1918
import 'moment/locale/hi';
20-
import 'moment/locale/es';
2119

2220
const defaultNS = 'translation';
2321
const defaultLng = 'en';
@@ -150,7 +148,6 @@ export class Streami18n {
150148
fr: { [defaultNS]: frTranslations },
151149
hi: { [defaultNS]: hiTranslations },
152150
it: { [defaultNS]: itTranslations },
153-
es: { [defaultNS]: esTranslations },
154151
};
155152

156153
/**
@@ -180,6 +177,7 @@ export class Streami18n {
180177
};
181178
this.currentLanguage = finalOptions.language;
182179
const translationsForLanguage = finalOptions.translationsForLanguage;
180+
183181
if (translationsForLanguage) {
184182
this.translations[this.currentLanguage] = {
185183
[defaultNS]: translationsForLanguage,

0 commit comments

Comments
 (0)