Skip to content

Commit c87ab94

Browse files
committed
fix: cleanup copied translations
* Cleaned up translation as it should come from transifex * relock package.json * update instructions * re-run compile catalog
1 parent 7292386 commit c87ab94

64 files changed

Lines changed: 19 additions & 2273 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.tx/config

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,26 +8,24 @@
88
# under the terms of the MIT License; see LICENSE file for more details.
99

1010
# Translate JavaScript strings
11-
# 1) Navigate to the directory:
12-
# cd src/lib/translations/messages
13-
# 2) Install i18n dev dependencies
11+
# 1) Install i18n dev dependencies
1412
# npm install
15-
# 3) Add a new language
13+
# 2) Add a new language
1614
# npm run init_catalog lang <lang>
17-
# 4) Extract translation keys/values
15+
# 3) Extract translation keys/values
1816
# $ npm run extract_messages
19-
# 5) Install the transifex-client
17+
# 4) Install the transifex-client
2018
# see: https://developers.transifex.com/docs/cli#transifex-client
21-
# 6) Push source (.pot) and translations (.po) to Transifex
19+
# 5) Push source (.pot) and translations (.po) to Transifex
2220
# Navigate to the root of the invenio_administration repository
2321
# $ tx push -s -t
24-
# 7) Pull translations for a single language from Transifex
22+
# 6) Pull translations for a single language from Transifex
2523
# $ tx pull -l <lang>
26-
# 8) Pull translations for all languages from Transifex
24+
# 7) Pull translations for all languages from Transifex
2725
# $ tx pull -a
28-
# 9) Compile .po files for all languages
26+
# 8) Compile .po files for all languages
2927
# $ npm run compile_catalog
30-
# 10) Convert .po file for a single language
28+
# 9) Convert .po file for a single language
3129
# $ npm run compile_catalog lang <lang>
3230

3331
[main]

package.json

Lines changed: 1 addition & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -9,39 +9,7 @@
99
"dist"
1010
],
1111
"config": {
12-
"languages": [
13-
"ar",
14-
"bg",
15-
"ca",
16-
"cs",
17-
"da",
18-
"de",
19-
"el",
20-
"en",
21-
"es",
22-
"et",
23-
"fa",
24-
"fi",
25-
"fr",
26-
"hr",
27-
"hu",
28-
"it",
29-
"ja",
30-
"ka",
31-
"ko",
32-
"lt",
33-
"no",
34-
"pl",
35-
"pt",
36-
"ro",
37-
"ru",
38-
"sk",
39-
"sv",
40-
"tr",
41-
"uk",
42-
"zh_CN",
43-
"zh_TW"
44-
]
12+
"languages": ["en"]
4513
},
4614
"scripts": {
4715
"start": "react-scripts start",
Lines changed: 0 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,8 @@
11
// AUTO-GENERATED FILE - DO NOT EDIT MANUALLY
22
// This file exports all available translations for i18next
33

4-
import TRANSLATE_AR from "./ar/translations.json";
5-
import TRANSLATE_BG from "./bg/translations.json";
6-
import TRANSLATE_CA from "./ca/translations.json";
7-
import TRANSLATE_CS from "./cs/translations.json";
8-
import TRANSLATE_DA from "./da/translations.json";
9-
import TRANSLATE_DE from "./de/translations.json";
10-
import TRANSLATE_EL from "./el/translations.json";
114
import TRANSLATE_EN from "./en/translations.json";
12-
import TRANSLATE_ES from "./es/translations.json";
13-
import TRANSLATE_ET from "./et/translations.json";
14-
import TRANSLATE_FA from "./fa/translations.json";
15-
import TRANSLATE_FI from "./fi/translations.json";
16-
import TRANSLATE_FR from "./fr/translations.json";
17-
import TRANSLATE_HR from "./hr/translations.json";
18-
import TRANSLATE_HU from "./hu/translations.json";
19-
import TRANSLATE_IT from "./it/translations.json";
20-
import TRANSLATE_JA from "./ja/translations.json";
21-
import TRANSLATE_KA from "./ka/translations.json";
22-
import TRANSLATE_KO from "./ko/translations.json";
23-
import TRANSLATE_LT from "./lt/translations.json";
24-
import TRANSLATE_NO from "./no/translations.json";
25-
import TRANSLATE_PL from "./pl/translations.json";
26-
import TRANSLATE_PT from "./pt/translations.json";
27-
import TRANSLATE_RO from "./ro/translations.json";
28-
import TRANSLATE_RU from "./ru/translations.json";
29-
import TRANSLATE_SK from "./sk/translations.json";
30-
import TRANSLATE_SV from "./sv/translations.json";
31-
import TRANSLATE_TR from "./tr/translations.json";
32-
import TRANSLATE_UK from "./uk/translations.json";
33-
import TRANSLATE_ZH_CN from "./zh_CN/translations.json";
34-
import TRANSLATE_ZH_TW from "./zh_TW/translations.json";
355

366
export const translations = {
37-
ar: { translation: TRANSLATE_AR },
38-
bg: { translation: TRANSLATE_BG },
39-
ca: { translation: TRANSLATE_CA },
40-
cs: { translation: TRANSLATE_CS },
41-
da: { translation: TRANSLATE_DA },
42-
de: { translation: TRANSLATE_DE },
43-
el: { translation: TRANSLATE_EL },
447
en: { translation: TRANSLATE_EN },
45-
es: { translation: TRANSLATE_ES },
46-
et: { translation: TRANSLATE_ET },
47-
fa: { translation: TRANSLATE_FA },
48-
fi: { translation: TRANSLATE_FI },
49-
fr: { translation: TRANSLATE_FR },
50-
hr: { translation: TRANSLATE_HR },
51-
hu: { translation: TRANSLATE_HU },
52-
it: { translation: TRANSLATE_IT },
53-
ja: { translation: TRANSLATE_JA },
54-
ka: { translation: TRANSLATE_KA },
55-
ko: { translation: TRANSLATE_KO },
56-
lt: { translation: TRANSLATE_LT },
57-
no: { translation: TRANSLATE_NO },
58-
pl: { translation: TRANSLATE_PL },
59-
pt: { translation: TRANSLATE_PT },
60-
ro: { translation: TRANSLATE_RO },
61-
ru: { translation: TRANSLATE_RU },
62-
sk: { translation: TRANSLATE_SK },
63-
sv: { translation: TRANSLATE_SV },
64-
tr: { translation: TRANSLATE_TR },
65-
uk: { translation: TRANSLATE_UK },
66-
zh_CN: { translation: TRANSLATE_ZH_CN },
67-
zh_TW: { translation: TRANSLATE_ZH_TW },
688
};

src/lib/translations/messages/ar/messages.po

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

src/lib/translations/messages/ar/translations.json

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

src/lib/translations/messages/bg/messages.po

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

src/lib/translations/messages/bg/translations.json

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

src/lib/translations/messages/ca/messages.po

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

src/lib/translations/messages/ca/translations.json

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

0 commit comments

Comments
 (0)