Skip to content

Commit

Permalink
Convert Translations to JSON (#287)
Browse files Browse the repository at this point in the history
* replace js object translations with JSON

* require JSON extensions for translation files
  • Loading branch information
dternyak authored Oct 14, 2017
1 parent d9ea80f commit dceeec7
Show file tree
Hide file tree
Showing 51 changed files with 14,189 additions and 21,806 deletions.
42 changes: 21 additions & 21 deletions common/translations/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,27 @@ const fallbackLanguage = 'en';
const repository = {};

const languages = [
require('./lang/de'),
require('./lang/el'),
require('./lang/en'),
require('./lang/es'),
require('./lang/fi'),
require('./lang/fr'),
require('./lang/ht'),
require('./lang/hu'),
require('./lang/id'),
require('./lang/it'),
require('./lang/ja'),
require('./lang/nl'),
require('./lang/no'),
require('./lang/pl'),
require('./lang/pt'),
require('./lang/ru') /*sk, sl, sv */,
require('./lang/ko'),
require('./lang/tr'),
require('./lang/vi'),
require('./lang/zhcn'),
require('./lang/zhtw')
require('./lang/de.json'),
require('./lang/el.json'),
require('./lang/en.json'),
require('./lang/es.json'),
require('./lang/fi.json'),
require('./lang/fr.json'),
require('./lang/ht.json'),
require('./lang/hu.json'),
require('./lang/id.json'),
require('./lang/it.json'),
require('./lang/ja.json'),
require('./lang/nl.json'),
require('./lang/no.json'),
require('./lang/pl.json'),
require('./lang/pt.json'),
require('./lang/ru.json') /*sk, sl, sv */,
require('./lang/ko.json'),
require('./lang/tr.json'),
require('./lang/vi.json'),
require('./lang/zhcn.json'),
require('./lang/zhtw.json')
];

languages.forEach(l => {
Expand Down
858 changes: 0 additions & 858 deletions common/translations/lang/ar.js

This file was deleted.

560 changes: 560 additions & 0 deletions common/translations/lang/ar.json

Large diffs are not rendered by default.

890 changes: 0 additions & 890 deletions common/translations/lang/de.js

This file was deleted.

570 changes: 570 additions & 0 deletions common/translations/lang/de.json

Large diffs are not rendered by default.

896 changes: 0 additions & 896 deletions common/translations/lang/el.js

This file was deleted.

570 changes: 570 additions & 0 deletions common/translations/lang/el.json

Large diffs are not rendered by default.

856 changes: 0 additions & 856 deletions common/translations/lang/en.js

This file was deleted.

559 changes: 559 additions & 0 deletions common/translations/lang/en.json

Large diffs are not rendered by default.

888 changes: 0 additions & 888 deletions common/translations/lang/es.js

This file was deleted.

570 changes: 570 additions & 0 deletions common/translations/lang/es.json

Large diffs are not rendered by default.

880 changes: 0 additions & 880 deletions common/translations/lang/fi.js

This file was deleted.

570 changes: 570 additions & 0 deletions common/translations/lang/fi.json

Large diffs are not rendered by default.

900 changes: 0 additions & 900 deletions common/translations/lang/fr.js

This file was deleted.

570 changes: 570 additions & 0 deletions common/translations/lang/fr.json

Large diffs are not rendered by default.

859 changes: 0 additions & 859 deletions common/translations/lang/ht.js

This file was deleted.

560 changes: 560 additions & 0 deletions common/translations/lang/ht.json

Large diffs are not rendered by default.

886 changes: 0 additions & 886 deletions common/translations/lang/hu.js

This file was deleted.

571 changes: 571 additions & 0 deletions common/translations/lang/hu.json

Large diffs are not rendered by default.

878 changes: 0 additions & 878 deletions common/translations/lang/id.js

This file was deleted.

570 changes: 570 additions & 0 deletions common/translations/lang/id.json

Large diffs are not rendered by default.

878 changes: 0 additions & 878 deletions common/translations/lang/it.js

This file was deleted.

559 changes: 559 additions & 0 deletions common/translations/lang/it.json

Large diffs are not rendered by default.

848 changes: 0 additions & 848 deletions common/translations/lang/ja.js

This file was deleted.

570 changes: 570 additions & 0 deletions common/translations/lang/ja.json

Large diffs are not rendered by default.

793 changes: 0 additions & 793 deletions common/translations/lang/ko.js

This file was deleted.

560 changes: 560 additions & 0 deletions common/translations/lang/ko.json

Large diffs are not rendered by default.

863 changes: 0 additions & 863 deletions common/translations/lang/nl.js

This file was deleted.

559 changes: 559 additions & 0 deletions common/translations/lang/nl.json

Large diffs are not rendered by default.

890 changes: 0 additions & 890 deletions common/translations/lang/no.js

This file was deleted.

570 changes: 570 additions & 0 deletions common/translations/lang/no.json

Large diffs are not rendered by default.

888 changes: 0 additions & 888 deletions common/translations/lang/pl.js

This file was deleted.

570 changes: 570 additions & 0 deletions common/translations/lang/pl.json

Large diffs are not rendered by default.

882 changes: 0 additions & 882 deletions common/translations/lang/pt.js

This file was deleted.

570 changes: 570 additions & 0 deletions common/translations/lang/pt.json

Large diffs are not rendered by default.

883 changes: 0 additions & 883 deletions common/translations/lang/ru.js

This file was deleted.

570 changes: 570 additions & 0 deletions common/translations/lang/ru.json

Large diffs are not rendered by default.

877 changes: 0 additions & 877 deletions common/translations/lang/sk.js

This file was deleted.

570 changes: 570 additions & 0 deletions common/translations/lang/sk.json

Large diffs are not rendered by default.

879 changes: 0 additions & 879 deletions common/translations/lang/sl.js

This file was deleted.

570 changes: 570 additions & 0 deletions common/translations/lang/sl.json

Large diffs are not rendered by default.

859 changes: 0 additions & 859 deletions common/translations/lang/sv.js

This file was deleted.

560 changes: 560 additions & 0 deletions common/translations/lang/sv.json

Large diffs are not rendered by default.

879 changes: 0 additions & 879 deletions common/translations/lang/tr.js

This file was deleted.

570 changes: 570 additions & 0 deletions common/translations/lang/tr.json

Large diffs are not rendered by default.

898 changes: 0 additions & 898 deletions common/translations/lang/vi.js

This file was deleted.

570 changes: 570 additions & 0 deletions common/translations/lang/vi.json

Large diffs are not rendered by default.

855 changes: 0 additions & 855 deletions common/translations/lang/zhcn.js

This file was deleted.

570 changes: 570 additions & 0 deletions common/translations/lang/zhcn.json

Large diffs are not rendered by default.

822 changes: 0 additions & 822 deletions common/translations/lang/zhtw.js

This file was deleted.

560 changes: 560 additions & 0 deletions common/translations/lang/zhtw.json

Large diffs are not rendered by default.

0 comments on commit dceeec7

Please sign in to comment.