Skip to content

Commit cc6cff7

Browse files
committed
Finishing i18n-core package methods
1 parent 1f3f557 commit cc6cff7

7 files changed

Lines changed: 433 additions & 5 deletions

File tree

packages/i18n-core/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
## `@generatedata/i18n-core`
22

3-
This package contains the code translations for the core script. This is used in the `apps/client` script and the
4-
`packages/cli` package.
3+
This package contains the code translations for the core script.
54

65
This is imported by the main `@generatedata/i18n` package, which houses the complete translations: core and plugins.
76

packages/i18n-core/locales/ru.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,6 @@
285285
"status": "Статус",
286286
"stripWhitespace": "удалить пробелы из сгенерированного контента",
287287
"success": "успех",
288-
"takeTour": "Совершите экскурсию",
289288
"text": "Текст",
290289
"textSize": "Размер текста",
291290
"theDataSetName": "Имя набора данных",

packages/i18n-core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"version": "1.0.0",
55
"private": true,
66
"scripts": {
7-
"build": "npm run validate ",
7+
"build": "npm run validate",
88
"validate": "validate-i18n-files --folder ./locales",
99
"sortI18nFiles": "sort-i18n-files --folder ./locales",
1010
"purge": "npx rimraf .turbo"
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/** @type {import('ts-jest').JestConfigWithTsJest} **/
2+
module.exports = {
3+
testEnvironment: 'node',
4+
rootDir: '../',
5+
transform: {
6+
'.+\\.tsx?$': ['ts-jest', {}]
7+
},
8+
testMatch: ['**/__tests__/**/*.test.ts?(x)', '**/?(*.)+(spec|test).ts?(x)'],
9+
testPathIgnorePatterns: ['/.*.d.ts$', '/dist/']
10+
};

packages/tools/package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,14 @@
77
"validate-i18n-files": "./bin/validation-i18n-files.js"
88
},
99
"scripts": {
10-
"build": "tsc"
10+
"build": "tsc",
11+
"test": "jest --config=./config/jest.config.js"
1112
},
1213
"devDependencies": {
14+
"@jest/globals": "catalog:",
15+
"@types/jest": "catalog:",
16+
"jest": "catalog:",
17+
"ts-jest": "catalog:",
1318
"typescript": "catalog:"
1419
}
1520
}

0 commit comments

Comments
 (0)