@health.espresso/translations 0.1.192

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,16 @@
1
+ import arabic from "./__locales/ar.json";
2
+ import cantonese from "./__locales/yue.json";
3
+ import chinese_simplified from "./__locales/zh_CN.json";
4
+ import chinese_traditional from "./__locales/zh_TW.json";
5
+ import english from "./__locales/en.json";
6
+ import french from "./__locales/fr.json";
7
+ import german from "./__locales/de.json";
8
+ import hindi from "./__locales/hi.json";
9
+ import japanese from "./__locales/ja.json";
10
+ import korean from "./__locales/ko.json";
11
+ import portuguese_brazilian from "./__locales/pt.json";
12
+ import spanish from "./__locales/es.json";
13
+ import ukrainian from "./__locales/uk.json";
14
+ import urdu from "./__locales/ur.json";
15
+ import vietnamese from "./__locales/vi.json";
16
+ export { arabic, cantonese, chinese_simplified, chinese_traditional, english, french, german, hindi, japanese, korean, portuguese_brazilian, spanish, ukrainian, urdu, vietnamese, };
package/dist/index.js ADDED
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.vietnamese = exports.urdu = exports.ukrainian = exports.spanish = exports.portuguese_brazilian = exports.korean = exports.japanese = exports.hindi = exports.german = exports.french = exports.english = exports.chinese_traditional = exports.chinese_simplified = exports.cantonese = exports.arabic = void 0;
7
+ // Import all supported languages from `__locales` folder
8
+ // @ts-ignore
9
+ const ar_json_1 = __importDefault(require("./__locales/ar.json"));
10
+ exports.arabic = ar_json_1.default;
11
+ // @ts-ignore
12
+ const yue_json_1 = __importDefault(require("./__locales/yue.json"));
13
+ exports.cantonese = yue_json_1.default;
14
+ // @ts-ignore
15
+ const zh_CN_json_1 = __importDefault(require("./__locales/zh_CN.json"));
16
+ exports.chinese_simplified = zh_CN_json_1.default;
17
+ // @ts-ignore
18
+ const zh_TW_json_1 = __importDefault(require("./__locales/zh_TW.json"));
19
+ exports.chinese_traditional = zh_TW_json_1.default;
20
+ // @ts-ignore
21
+ const en_json_1 = __importDefault(require("./__locales/en.json"));
22
+ exports.english = en_json_1.default;
23
+ // @ts-ignore
24
+ const fr_json_1 = __importDefault(require("./__locales/fr.json"));
25
+ exports.french = fr_json_1.default;
26
+ // @ts-ignore
27
+ const de_json_1 = __importDefault(require("./__locales/de.json"));
28
+ exports.german = de_json_1.default;
29
+ // @ts-ignore
30
+ const hi_json_1 = __importDefault(require("./__locales/hi.json"));
31
+ exports.hindi = hi_json_1.default;
32
+ // @ts-ignore
33
+ const ja_json_1 = __importDefault(require("./__locales/ja.json"));
34
+ exports.japanese = ja_json_1.default;
35
+ // @ts-ignore
36
+ const ko_json_1 = __importDefault(require("./__locales/ko.json"));
37
+ exports.korean = ko_json_1.default;
38
+ // @ts-ignore
39
+ const pt_json_1 = __importDefault(require("./__locales/pt.json"));
40
+ exports.portuguese_brazilian = pt_json_1.default;
41
+ // @ts-ignore
42
+ const es_json_1 = __importDefault(require("./__locales/es.json"));
43
+ exports.spanish = es_json_1.default;
44
+ // @ts-ignore
45
+ const uk_json_1 = __importDefault(require("./__locales/uk.json"));
46
+ exports.ukrainian = uk_json_1.default;
47
+ // @ts-ignore
48
+ const ur_json_1 = __importDefault(require("./__locales/ur.json"));
49
+ exports.urdu = ur_json_1.default;
50
+ // @ts-ignore
51
+ const vi_json_1 = __importDefault(require("./__locales/vi.json"));
52
+ exports.vietnamese = vi_json_1.default;
package/package.json ADDED
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "@health.espresso/translations",
3
+ "description": "Unified translations for Health Espresso",
4
+ "version": "0.1.192",
5
+ "author": "Health Espresso",
6
+ "license": "MIT",
7
+ "main": "dist/index.js",
8
+ "types": "dist/index.d.ts",
9
+ "registry-url": "https://registry.npmjs.org/",
10
+ "scripts": {
11
+ "build": "tsc",
12
+ "up": "npm run build && npm version patch && npm publish --access public"
13
+ },
14
+ "devDependencies": {
15
+ "@types/node": "^18.15.11",
16
+ "typescript": "^5.0.3"
17
+ }
18
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,13 @@
1
+ {
2
+ "compilerOptions": {
3
+ "module": "CommonJS",
4
+ "target": "ES2019",
5
+ "outDir": "dist",
6
+ "esModuleInterop": true,
7
+ "declaration": true,
8
+ "skipLibCheck": true,
9
+ "forceConsistentCasingInFileNames": true,
10
+ "resolveJsonModule": true
11
+ },
12
+ "include": ["src"]
13
+ }