mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-22 03:14:40 +03:00
Add lang UT (#2297)
Signed-off-by: Dvinyanin Alexandr <dvinyanin.alexandr@gmail.com>
This commit is contained in:
parent
009865fe33
commit
d74fcb45a3
@ -30,8 +30,8 @@
|
||||
"dependencies": {
|
||||
"@hcengineering/platform": "^0.6.7"
|
||||
},
|
||||
"repository":"https://github.com/hcengineering/anticrm",
|
||||
"repository": "https://github.com/hcengineering/anticrm",
|
||||
"publishConfig": {
|
||||
"registry":"https://npm.pkg.github.com"
|
||||
"registry": "https://npm.pkg.github.com"
|
||||
}
|
||||
}
|
||||
|
6
packages/core/src/__tests__/lang.test.ts
Normal file
6
packages/core/src/__tests__/lang.test.ts
Normal file
@ -0,0 +1,6 @@
|
||||
import { makeLocalesTest } from '@hcengineering/platform'
|
||||
|
||||
it(
|
||||
'Locales are equale',
|
||||
makeLocalesTest((lang) => import(`../lang/${lang}.json`))
|
||||
)
|
@ -29,8 +29,8 @@
|
||||
"dependencies": {
|
||||
"intl-messageformat": "^9.7.1"
|
||||
},
|
||||
"repository":"https://github.com/hcengineering/anticrm",
|
||||
"repository": "https://github.com/hcengineering/anticrm",
|
||||
"publishConfig": {
|
||||
"registry":"https://npm.pkg.github.com"
|
||||
"registry": "https://npm.pkg.github.com"
|
||||
}
|
||||
}
|
||||
|
@ -25,6 +25,7 @@ export * from './resource'
|
||||
export * from './i18n'
|
||||
export * from './metadata'
|
||||
export * from './rpc'
|
||||
export * from './testUtils'
|
||||
|
||||
addStringsLoader(platformId, async (lang: string) => {
|
||||
return await import(`./lang/${lang}.json`)
|
||||
|
26
packages/platform/src/testUtils.ts
Normal file
26
packages/platform/src/testUtils.ts
Normal file
@ -0,0 +1,26 @@
|
||||
import { Loader } from './i18n'
|
||||
|
||||
function makeLocaleMatcher (target: object): object {
|
||||
return Object.entries(target).reduce(
|
||||
(obj, [key, value]) => ({
|
||||
...obj,
|
||||
[key]: typeof value === 'string' ? expect.any(String) : makeLocaleMatcher(value)
|
||||
}),
|
||||
{}
|
||||
)
|
||||
}
|
||||
|
||||
const langs = ['en', 'ru']
|
||||
|
||||
/**
|
||||
* @public
|
||||
* @param loader -
|
||||
* @returns
|
||||
*/
|
||||
export function makeLocalesTest (loader: Loader) {
|
||||
return async () => {
|
||||
const [target, ...rest] = await Promise.all(langs.map(loader))
|
||||
const matcher = makeLocaleMatcher(target)
|
||||
rest.forEach((loc) => expect(loc).toEqual(matcher))
|
||||
}
|
||||
}
|
@ -35,7 +35,6 @@
|
||||
"@hcengineering/platform": "^0.6.7",
|
||||
"@hcengineering/core": "^0.6.17",
|
||||
"@hcengineering/ui": "^0.6.2",
|
||||
|
||||
"svelte": "^3.47",
|
||||
"@tiptap/core": "~2.0.0-beta.181",
|
||||
"@tiptap/starter-kit": "~2.0.0-beta.190",
|
||||
|
@ -33,8 +33,8 @@
|
||||
"svelte": "^3.47",
|
||||
"@hcengineering/platform": "^0.6.7"
|
||||
},
|
||||
"repository":"https://github.com/hcenginneing/anticrm",
|
||||
"repository": "https://github.com/hcenginneing/anticrm",
|
||||
"publishConfig": {
|
||||
"registry":"https://npm.pkg.github.com"
|
||||
"registry": "https://npm.pkg.github.com"
|
||||
}
|
||||
}
|
||||
|
@ -36,10 +36,10 @@
|
||||
"@hcengineering/platform": "^0.6.7",
|
||||
"@hcengineering/theme": "^0.6.1",
|
||||
"@hcengineering/core": "^0.6.17",
|
||||
"svelte": "^3.47"
|
||||
"svelte": "^3.47"
|
||||
},
|
||||
"repository":"https://github.com/hcenginneing/anticrm",
|
||||
"repository": "https://github.com/hcenginneing/anticrm",
|
||||
"publishConfig": {
|
||||
"registry":"https://npm.pkg.github.com"
|
||||
"registry": "https://npm.pkg.github.com"
|
||||
}
|
||||
}
|
||||
|
@ -7,6 +7,7 @@
|
||||
"license": "EPL-2.0",
|
||||
"scripts": {
|
||||
"build": "heft build",
|
||||
"test": "heft test",
|
||||
"lint": "eslint src",
|
||||
"lint:fix": "eslint --fix src",
|
||||
"format": "prettier --write src && eslint --fix src",
|
||||
|
6
plugins/activity-assets/src/__tests__/lang.test.ts
Normal file
6
plugins/activity-assets/src/__tests__/lang.test.ts
Normal file
@ -0,0 +1,6 @@
|
||||
import { makeLocalesTest } from '@hcengineering/platform'
|
||||
|
||||
it(
|
||||
'Locales are equale',
|
||||
makeLocalesTest((lang) => import(`../../lang/${lang}.json`))
|
||||
)
|
@ -2,7 +2,9 @@
|
||||
"compilerOptions": {
|
||||
"moduleResolution": "node",
|
||||
"target": "esnext",
|
||||
"module": "esnext",
|
||||
"module": "commonjs",
|
||||
"sourceMap": true,
|
||||
"types": ["node", "heft-jest"],
|
||||
"declaration": true,
|
||||
"outDir": "./lib",
|
||||
"strict": true,
|
||||
|
@ -8,6 +8,7 @@
|
||||
"scripts": {
|
||||
"build": "heft build",
|
||||
"build:docs": "",
|
||||
"test": "heft test",
|
||||
"lint": "eslint src",
|
||||
"lint:fix": "eslint --fix src",
|
||||
"format": "prettier --write src && eslint --fix src",
|
||||
|
6
plugins/attachment-assets/src/__tests__/lang.test.ts
Normal file
6
plugins/attachment-assets/src/__tests__/lang.test.ts
Normal file
@ -0,0 +1,6 @@
|
||||
import { makeLocalesTest } from '@hcengineering/platform'
|
||||
|
||||
it(
|
||||
'Locales are equale',
|
||||
makeLocalesTest((lang) => import(`../../lang/${lang}.json`))
|
||||
)
|
@ -2,7 +2,9 @@
|
||||
"compilerOptions": {
|
||||
"moduleResolution": "node",
|
||||
"target": "esnext",
|
||||
"module": "esnext",
|
||||
"module": "commonjs",
|
||||
"sourceMap": true,
|
||||
"types": ["node", "heft-jest"],
|
||||
"declaration": true,
|
||||
"outDir": "./lib",
|
||||
"strict": true,
|
||||
|
@ -7,6 +7,7 @@
|
||||
"license": "EPL-2.0",
|
||||
"scripts": {
|
||||
"build": "heft build",
|
||||
"test": "heft test",
|
||||
"build:docs": "",
|
||||
"lint": "eslint src",
|
||||
"lint:fix": "eslint --fix src",
|
||||
|
6
plugins/automation-assets/src/__tests__/lang.test.ts
Normal file
6
plugins/automation-assets/src/__tests__/lang.test.ts
Normal file
@ -0,0 +1,6 @@
|
||||
import { makeLocalesTest } from '@hcengineering/platform'
|
||||
|
||||
it(
|
||||
'Locales are equale',
|
||||
makeLocalesTest((lang) => import(`../../lang/${lang}.json`))
|
||||
)
|
@ -2,7 +2,9 @@
|
||||
"compilerOptions": {
|
||||
"moduleResolution": "node",
|
||||
"target": "esnext",
|
||||
"module": "esnext",
|
||||
"module": "commonjs",
|
||||
"sourceMap": true,
|
||||
"types": ["node", "heft-jest"],
|
||||
"declaration": true,
|
||||
"outDir": "./lib",
|
||||
"strict": true,
|
||||
|
@ -7,6 +7,7 @@
|
||||
"license": "EPL-2.0",
|
||||
"scripts": {
|
||||
"build": "heft build",
|
||||
"test": "heft test",
|
||||
"build:docs": "",
|
||||
"lint": "eslint src",
|
||||
"lint:fix": "eslint --fix src",
|
||||
|
6
plugins/board-assets/src/__tests__/lang.test.ts
Normal file
6
plugins/board-assets/src/__tests__/lang.test.ts
Normal file
@ -0,0 +1,6 @@
|
||||
import { makeLocalesTest } from '@hcengineering/platform'
|
||||
|
||||
it(
|
||||
'Locales are equale',
|
||||
makeLocalesTest((lang) => import(`../../lang/${lang}.json`))
|
||||
)
|
@ -2,7 +2,9 @@
|
||||
"compilerOptions": {
|
||||
"moduleResolution": "node",
|
||||
"target": "esnext",
|
||||
"module": "esnext",
|
||||
"module": "commonjs",
|
||||
"sourceMap": true,
|
||||
"types": ["node", "heft-jest"],
|
||||
"declaration": true,
|
||||
"outDir": "./lib",
|
||||
"strict": true,
|
||||
|
@ -31,6 +31,8 @@
|
||||
"CreateReminder": "Создать напоминание",
|
||||
"CreatedReminder": "Создал напоминание",
|
||||
"Reminders": "Напоминания",
|
||||
"Shift": "Сдвиг",
|
||||
"State": "Состояние",
|
||||
"NoReminders": "Нет напоминаний",
|
||||
"AllDay": "Весь день",
|
||||
"AndMore": "И еще {count}",
|
||||
|
@ -7,6 +7,7 @@
|
||||
"license": "EPL-2.0",
|
||||
"scripts": {
|
||||
"build": "heft build",
|
||||
"test": "heft test",
|
||||
"build:docs": "",
|
||||
"lint": "eslint src",
|
||||
"lint:fix": "eslint --fix src",
|
||||
|
6
plugins/calendar-assets/src/__tests__/lang.test.ts
Normal file
6
plugins/calendar-assets/src/__tests__/lang.test.ts
Normal file
@ -0,0 +1,6 @@
|
||||
import { makeLocalesTest } from '@hcengineering/platform'
|
||||
|
||||
it(
|
||||
'Locales are equale',
|
||||
makeLocalesTest((lang) => import(`../../lang/${lang}.json`))
|
||||
)
|
@ -2,7 +2,9 @@
|
||||
"compilerOptions": {
|
||||
"moduleResolution": "node",
|
||||
"target": "esnext",
|
||||
"module": "esnext",
|
||||
"module": "commonjs",
|
||||
"sourceMap": true,
|
||||
"types": ["node", "heft-jest"],
|
||||
"declaration": true,
|
||||
"outDir": "./lib",
|
||||
"strict": true,
|
||||
|
@ -30,6 +30,7 @@
|
||||
"Replies": "Ответы",
|
||||
"LastReply": "Последний ответ",
|
||||
"RepliesCount": "{replies, plural, =1 {# ответ} =2 {# ответа} =3 {# ответа} =4 {# ответа} other {# ответов}}",
|
||||
"Topic": "Топик",
|
||||
"Thread": "Обсуждение",
|
||||
"Threads": "Обсуждения",
|
||||
"New": "Новое",
|
||||
|
@ -7,6 +7,7 @@
|
||||
"license": "EPL-2.0",
|
||||
"scripts": {
|
||||
"build": "heft build",
|
||||
"test": "heft test",
|
||||
"build:docs": "",
|
||||
"lint": "eslint src",
|
||||
"lint:fix": "eslint --fix src",
|
||||
|
6
plugins/chunter-assets/src/__tests__/lang.test.ts
Normal file
6
plugins/chunter-assets/src/__tests__/lang.test.ts
Normal file
@ -0,0 +1,6 @@
|
||||
import { makeLocalesTest } from '@hcengineering/platform'
|
||||
|
||||
it(
|
||||
'Locales are equale',
|
||||
makeLocalesTest((lang) => import(`../../lang/${lang}.json`))
|
||||
)
|
@ -2,7 +2,9 @@
|
||||
"compilerOptions": {
|
||||
"moduleResolution": "node",
|
||||
"target": "esnext",
|
||||
"module": "esnext",
|
||||
"module": "commonjs",
|
||||
"sourceMap": true,
|
||||
"types": ["node", "heft-jest"],
|
||||
"declaration": true,
|
||||
"outDir": "./lib",
|
||||
"strict": true,
|
||||
|
@ -30,8 +30,8 @@
|
||||
"@hcengineering/core": "^0.6.17",
|
||||
"@hcengineering/client": "^0.6.3"
|
||||
},
|
||||
"repository":"https://github.com/hcengineering/anticrm",
|
||||
"repository": "https://github.com/hcengineering/anticrm",
|
||||
"publishConfig": {
|
||||
"registry":"https://npm.pkg.github.com"
|
||||
"registry": "https://npm.pkg.github.com"
|
||||
}
|
||||
}
|
||||
|
@ -29,8 +29,8 @@
|
||||
"@hcengineering/platform": "^0.6.7",
|
||||
"@hcengineering/core": "^0.6.17"
|
||||
},
|
||||
"repository":"https://github.com/hcengineering/anticrm",
|
||||
"repository": "https://github.com/hcengineering/anticrm",
|
||||
"publishConfig": {
|
||||
"registry":"https://npm.pkg.github.com"
|
||||
"registry": "https://npm.pkg.github.com"
|
||||
}
|
||||
}
|
||||
|
@ -7,6 +7,7 @@
|
||||
"license": "EPL-2.0",
|
||||
"scripts": {
|
||||
"build": "heft build",
|
||||
"test": "heft test",
|
||||
"build:docs": "",
|
||||
"lint": "eslint src",
|
||||
"lint:fix": "eslint --fix src",
|
||||
|
6
plugins/contact-assets/src/__tests__/lang.test.ts
Normal file
6
plugins/contact-assets/src/__tests__/lang.test.ts
Normal file
@ -0,0 +1,6 @@
|
||||
import { makeLocalesTest } from '@hcengineering/platform'
|
||||
|
||||
it(
|
||||
'Locales are equale',
|
||||
makeLocalesTest((lang) => import(`../../lang/${lang}.json`))
|
||||
)
|
@ -2,7 +2,9 @@
|
||||
"compilerOptions": {
|
||||
"moduleResolution": "node",
|
||||
"target": "esnext",
|
||||
"module": "esnext",
|
||||
"module": "commonjs",
|
||||
"sourceMap": true,
|
||||
"types": ["node", "heft-jest"],
|
||||
"declaration": true,
|
||||
"outDir": "./lib",
|
||||
"strict": true,
|
||||
|
@ -31,8 +31,8 @@
|
||||
"@hcengineering/core": "^0.6.17",
|
||||
"@hcengineering/view": "^0.6.1"
|
||||
},
|
||||
"repository":"https://github.com/hcengineering/anticrm",
|
||||
"repository": "https://github.com/hcengineering/anticrm",
|
||||
"publishConfig": {
|
||||
"registry":"https://npm.pkg.github.com"
|
||||
"registry": "https://npm.pkg.github.com"
|
||||
}
|
||||
}
|
||||
|
@ -7,6 +7,7 @@
|
||||
"license": "EPL-2.0",
|
||||
"scripts": {
|
||||
"build": "heft build",
|
||||
"test": "heft test",
|
||||
"lint": "eslint src",
|
||||
"lint:fix": "eslint --fix src",
|
||||
"format": "prettier --write src && eslint --fix src",
|
||||
|
6
plugins/gmail-assets/src/__tests__/lang.test.ts
Normal file
6
plugins/gmail-assets/src/__tests__/lang.test.ts
Normal file
@ -0,0 +1,6 @@
|
||||
import { makeLocalesTest } from '@hcengineering/platform'
|
||||
|
||||
it(
|
||||
'Locales are equale',
|
||||
makeLocalesTest((lang) => import(`../../lang/${lang}.json`))
|
||||
)
|
@ -2,7 +2,9 @@
|
||||
"compilerOptions": {
|
||||
"moduleResolution": "node",
|
||||
"target": "esnext",
|
||||
"module": "esnext",
|
||||
"module": "commonjs",
|
||||
"sourceMap": true,
|
||||
"types": ["node", "heft-jest"],
|
||||
"declaration": true,
|
||||
"outDir": "./lib",
|
||||
"strict": true,
|
||||
|
@ -32,6 +32,7 @@
|
||||
"EditRequest": "Edit {type}",
|
||||
"Request": "Request",
|
||||
"Staff": "Worker",
|
||||
"Member": "Member",
|
||||
"Members": "Members",
|
||||
"NoMembers": "No members added",
|
||||
"AddMember": "Add member"
|
||||
|
@ -7,6 +7,7 @@
|
||||
"license": "EPL-2.0",
|
||||
"scripts": {
|
||||
"build": "heft build",
|
||||
"test": "heft test",
|
||||
"build:docs": "",
|
||||
"lint": "eslint src",
|
||||
"lint:fix": "eslint --fix src",
|
||||
|
6
plugins/hr-assets/src/__tests__/lang.test.ts
Normal file
6
plugins/hr-assets/src/__tests__/lang.test.ts
Normal file
@ -0,0 +1,6 @@
|
||||
import { makeLocalesTest } from '@hcengineering/platform'
|
||||
|
||||
it(
|
||||
'Locales are equale',
|
||||
makeLocalesTest((lang) => import(`../../lang/${lang}.json`))
|
||||
)
|
@ -2,7 +2,9 @@
|
||||
"compilerOptions": {
|
||||
"moduleResolution": "node",
|
||||
"target": "esnext",
|
||||
"module": "esnext",
|
||||
"module": "commonjs",
|
||||
"sourceMap": true,
|
||||
"types": ["node", "heft-jest"],
|
||||
"declaration": true,
|
||||
"outDir": "./lib",
|
||||
"strict": true,
|
||||
|
@ -7,6 +7,7 @@
|
||||
"license": "EPL-2.0",
|
||||
"scripts": {
|
||||
"build": "heft build",
|
||||
"test": "heft test",
|
||||
"lint": "eslint src",
|
||||
"lint:fix": "eslint --fix src",
|
||||
"format": "prettier --write src && eslint --fix src",
|
||||
|
6
plugins/inventory-assets/src/__tests__/lang.test.ts
Normal file
6
plugins/inventory-assets/src/__tests__/lang.test.ts
Normal file
@ -0,0 +1,6 @@
|
||||
import { makeLocalesTest } from '@hcengineering/platform'
|
||||
|
||||
it(
|
||||
'Locales are equale',
|
||||
makeLocalesTest((lang) => import(`../../lang/${lang}.json`))
|
||||
)
|
@ -2,7 +2,9 @@
|
||||
"compilerOptions": {
|
||||
"moduleResolution": "node",
|
||||
"target": "esnext",
|
||||
"module": "esnext",
|
||||
"module": "commonjs",
|
||||
"sourceMap": true,
|
||||
"types": ["node", "heft-jest"],
|
||||
"declaration": true,
|
||||
"outDir": "./lib",
|
||||
"strict": true,
|
||||
|
@ -7,6 +7,7 @@
|
||||
"license": "EPL-2.0",
|
||||
"scripts": {
|
||||
"build": "heft build",
|
||||
"test": "heft test",
|
||||
"build:docs": "",
|
||||
"lint": "eslint src",
|
||||
"lint:fix": "eslint --fix src",
|
||||
|
6
plugins/lead-assets/src/__tests__/lang.test.ts
Normal file
6
plugins/lead-assets/src/__tests__/lang.test.ts
Normal file
@ -0,0 +1,6 @@
|
||||
import { makeLocalesTest } from '@hcengineering/platform'
|
||||
|
||||
it(
|
||||
'Locales are equale',
|
||||
makeLocalesTest((lang) => import(`../../lang/${lang}.json`))
|
||||
)
|
@ -2,7 +2,9 @@
|
||||
"compilerOptions": {
|
||||
"moduleResolution": "node",
|
||||
"target": "esnext",
|
||||
"module": "esnext",
|
||||
"module": "commonjs",
|
||||
"sourceMap": true,
|
||||
"types": ["node", "heft-jest"],
|
||||
"declaration": true,
|
||||
"outDir": "./lib",
|
||||
"strict": true,
|
||||
|
@ -7,6 +7,7 @@
|
||||
"license": "EPL-2.0",
|
||||
"scripts": {
|
||||
"build": "heft build",
|
||||
"test": "heft test",
|
||||
"build:docs": "",
|
||||
"lint": "eslint src",
|
||||
"lint:fix": "eslint --fix src",
|
||||
|
6
plugins/login-assets/src/__tests__/lang.test.ts
Normal file
6
plugins/login-assets/src/__tests__/lang.test.ts
Normal file
@ -0,0 +1,6 @@
|
||||
import { makeLocalesTest } from '@hcengineering/platform'
|
||||
|
||||
it(
|
||||
'Locales are equale',
|
||||
makeLocalesTest((lang) => import(`../../lang/${lang}.json`))
|
||||
)
|
@ -2,7 +2,9 @@
|
||||
"compilerOptions": {
|
||||
"moduleResolution": "node",
|
||||
"target": "esnext",
|
||||
"module": "esnext",
|
||||
"module": "commonjs",
|
||||
"sourceMap": true,
|
||||
"types": ["node", "heft-jest"],
|
||||
"declaration": true,
|
||||
"outDir": "./lib",
|
||||
"strict": true,
|
||||
|
@ -7,6 +7,7 @@
|
||||
"license": "EPL-2.0",
|
||||
"scripts": {
|
||||
"build": "heft build",
|
||||
"test": "heft test",
|
||||
"build:docs": "",
|
||||
"lint": "eslint src",
|
||||
"lint:fix": "eslint --fix src",
|
||||
|
6
plugins/notification-assets/src/__tests__/lang.test.ts
Normal file
6
plugins/notification-assets/src/__tests__/lang.test.ts
Normal file
@ -0,0 +1,6 @@
|
||||
import { makeLocalesTest } from '@hcengineering/platform'
|
||||
|
||||
it(
|
||||
'Locales are equale',
|
||||
makeLocalesTest((lang) => import(`../../lang/${lang}.json`))
|
||||
)
|
@ -2,7 +2,9 @@
|
||||
"compilerOptions": {
|
||||
"moduleResolution": "node",
|
||||
"target": "esnext",
|
||||
"module": "esnext",
|
||||
"module": "commonjs",
|
||||
"sourceMap": true,
|
||||
"types": ["node", "heft-jest"],
|
||||
"declaration": true,
|
||||
"outDir": "./lib",
|
||||
"strict": true,
|
||||
|
@ -36,8 +36,8 @@
|
||||
"@hcengineering/core": "^0.6.17",
|
||||
"@hcengineering/ui": "^0.6.2"
|
||||
},
|
||||
"repository":"https://github.com/hcengineering/anticrm",
|
||||
"repository": "https://github.com/hcengineering/anticrm",
|
||||
"publishConfig": {
|
||||
"registry":"https://npm.pkg.github.com"
|
||||
"registry": "https://npm.pkg.github.com"
|
||||
}
|
||||
}
|
||||
|
@ -7,6 +7,7 @@
|
||||
"license": "EPL-2.0",
|
||||
"scripts": {
|
||||
"build": "heft build",
|
||||
"test": "heft test",
|
||||
"lint": "eslint src",
|
||||
"lint:fix": "eslint --fix src",
|
||||
"format": "prettier --write src && eslint --fix src",
|
||||
|
6
plugins/preference-assets/src/__tests__/lang.test.ts
Normal file
6
plugins/preference-assets/src/__tests__/lang.test.ts
Normal file
@ -0,0 +1,6 @@
|
||||
import { makeLocalesTest } from '@hcengineering/platform'
|
||||
|
||||
it(
|
||||
'Locales are equale',
|
||||
makeLocalesTest((lang) => import(`../../lang/${lang}.json`))
|
||||
)
|
@ -2,7 +2,9 @@
|
||||
"compilerOptions": {
|
||||
"moduleResolution": "node",
|
||||
"target": "esnext",
|
||||
"module": "esnext",
|
||||
"module": "commonjs",
|
||||
"sourceMap": true,
|
||||
"types": ["node", "heft-jest"],
|
||||
"declaration": true,
|
||||
"outDir": "./lib",
|
||||
"strict": true,
|
||||
|
@ -30,8 +30,8 @@
|
||||
"@hcengineering/core": "^0.6.17",
|
||||
"@hcengineering/ui": "^0.6.2"
|
||||
},
|
||||
"repository":"https://github.com/hcenginneing/anticrm",
|
||||
"repository": "https://github.com/hcenginneing/anticrm",
|
||||
"publishConfig": {
|
||||
"registry":"https://npm.pkg.github.com"
|
||||
"registry": "https://npm.pkg.github.com"
|
||||
}
|
||||
}
|
||||
|
@ -7,6 +7,7 @@
|
||||
"license": "EPL-2.0",
|
||||
"scripts": {
|
||||
"build": "heft build",
|
||||
"test": "heft test",
|
||||
"build:docs": "",
|
||||
"lint": "eslint src",
|
||||
"lint:fix": "eslint --fix src",
|
||||
|
6
plugins/recruit-assets/src/__tests__/lang.test.ts
Normal file
6
plugins/recruit-assets/src/__tests__/lang.test.ts
Normal file
@ -0,0 +1,6 @@
|
||||
import { makeLocalesTest } from '@hcengineering/platform'
|
||||
|
||||
it(
|
||||
'Locales are equale',
|
||||
makeLocalesTest((lang) => import(`../../lang/${lang}.json`))
|
||||
)
|
@ -2,7 +2,9 @@
|
||||
"compilerOptions": {
|
||||
"moduleResolution": "node",
|
||||
"target": "esnext",
|
||||
"module": "esnext",
|
||||
"module": "commonjs",
|
||||
"sourceMap": true,
|
||||
"types": ["node", "heft-jest"],
|
||||
"declaration": true,
|
||||
"outDir": "./lib",
|
||||
"strict": true,
|
||||
|
@ -37,7 +37,7 @@
|
||||
"DeleteAttributeExistConfirm": "Do you want to delete this attribute? Data will be lost",
|
||||
"DeleteMixin": "Delete Mixin",
|
||||
"DeleteMixinConfirm": "Do you want to delete this mixin?",
|
||||
"DeleteMixinExistConfirm": "Do you wany yo delete this mixin? Data will not be available",
|
||||
"DeleteMixinExistConfirm": "Do you want to delete this mixin? Data will not be available",
|
||||
"Attribute": "Attribute",
|
||||
"Custom": "Custom",
|
||||
"Type": "Type",
|
||||
|
@ -35,6 +35,9 @@
|
||||
"DeleteAttribute": "Удалить атрибут",
|
||||
"DeleteAttributeConfirm": "Вы действительно хотите удалить этот атрибут?",
|
||||
"DeleteAttributeExistConfirm": "Вы действительно хотите удалить этот атрибут? Данные будут утеряны",
|
||||
"DeleteMixin": "Удалить Миксин",
|
||||
"DeleteMixinConfirm": "Вы действительно хотите удалить этот Миксин?",
|
||||
"DeleteMixinExistConfirm": "Вы действительно хотите удалить этот Миксин? Данные будут утеряны",
|
||||
"Attribute": "Атрибут",
|
||||
"Custom": "Пользовательский",
|
||||
"Type": "Тип",
|
||||
|
@ -7,6 +7,7 @@
|
||||
"license": "EPL-2.0",
|
||||
"scripts": {
|
||||
"build": "heft build",
|
||||
"test": "heft test",
|
||||
"build:docs": "",
|
||||
"lint": "eslint src",
|
||||
"lint:fix": "eslint --fix src",
|
||||
|
6
plugins/setting-assets/src/__tests__/lang.test.ts
Normal file
6
plugins/setting-assets/src/__tests__/lang.test.ts
Normal file
@ -0,0 +1,6 @@
|
||||
import { makeLocalesTest } from '@hcengineering/platform'
|
||||
|
||||
it(
|
||||
'Locales are equale',
|
||||
makeLocalesTest((lang) => import(`../../lang/${lang}.json`))
|
||||
)
|
@ -2,7 +2,9 @@
|
||||
"compilerOptions": {
|
||||
"moduleResolution": "node",
|
||||
"target": "esnext",
|
||||
"module": "esnext",
|
||||
"module": "commonjs",
|
||||
"sourceMap": true,
|
||||
"types": ["node", "heft-jest"],
|
||||
"declaration": true,
|
||||
"outDir": "./lib",
|
||||
"strict": true,
|
||||
|
@ -30,6 +30,7 @@
|
||||
"CategoryTagsLabel": "Теги категории",
|
||||
"OtherCategoryLabel": "Другое",
|
||||
"AllCategories": "Все категории",
|
||||
"DefaultLabel": "Категория по умолчанию",
|
||||
"SelectAll": "Выбрать все",
|
||||
"SelectNone": "Выбрать ничего",
|
||||
"ApplyTags": "Применить"
|
||||
|
@ -7,6 +7,7 @@
|
||||
"license": "EPL-2.0",
|
||||
"scripts": {
|
||||
"build": "heft build",
|
||||
"test": "heft test",
|
||||
"lint": "eslint src",
|
||||
"lint:fix": "eslint --fix src",
|
||||
"format": "prettier --write src && eslint --fix src",
|
||||
|
6
plugins/tags-assets/src/__tests__/lang.test.ts
Normal file
6
plugins/tags-assets/src/__tests__/lang.test.ts
Normal file
@ -0,0 +1,6 @@
|
||||
import { makeLocalesTest } from '@hcengineering/platform'
|
||||
|
||||
it(
|
||||
'Locales are equale',
|
||||
makeLocalesTest((lang) => import(`../../lang/${lang}.json`))
|
||||
)
|
@ -2,7 +2,9 @@
|
||||
"compilerOptions": {
|
||||
"moduleResolution": "node",
|
||||
"target": "esnext",
|
||||
"module": "esnext",
|
||||
"module": "commonjs",
|
||||
"sourceMap": true,
|
||||
"types": ["node", "heft-jest"],
|
||||
"declaration": true,
|
||||
"outDir": "./lib",
|
||||
"strict": true,
|
||||
|
@ -7,6 +7,7 @@
|
||||
"license": "EPL-2.0",
|
||||
"scripts": {
|
||||
"build": "heft build",
|
||||
"test": "heft test",
|
||||
"build:docs": "",
|
||||
"lint": "eslint src",
|
||||
"lint:fix": "eslint --fix src",
|
||||
|
6
plugins/task-assets/src/__tests__/lang.test.ts
Normal file
6
plugins/task-assets/src/__tests__/lang.test.ts
Normal file
@ -0,0 +1,6 @@
|
||||
import { makeLocalesTest } from '@hcengineering/platform'
|
||||
|
||||
it(
|
||||
'Locales are equale',
|
||||
makeLocalesTest((lang) => import(`../../lang/${lang}.json`))
|
||||
)
|
@ -2,7 +2,9 @@
|
||||
"compilerOptions": {
|
||||
"moduleResolution": "node",
|
||||
"target": "esnext",
|
||||
"module": "esnext",
|
||||
"module": "commonjs",
|
||||
"sourceMap": true,
|
||||
"types": ["node", "heft-jest"],
|
||||
"declaration": true,
|
||||
"outDir": "./lib",
|
||||
"strict": true,
|
||||
|
@ -7,6 +7,7 @@
|
||||
"license": "EPL-2.0",
|
||||
"scripts": {
|
||||
"build": "heft build",
|
||||
"test": "heft test",
|
||||
"lint": "eslint src",
|
||||
"lint:fix": "eslint --fix src",
|
||||
"format": "prettier --write src && eslint --fix src",
|
||||
|
6
plugins/telegram-assets/src/__tests__/lang.test.ts
Normal file
6
plugins/telegram-assets/src/__tests__/lang.test.ts
Normal file
@ -0,0 +1,6 @@
|
||||
import { makeLocalesTest } from '@hcengineering/platform'
|
||||
|
||||
it(
|
||||
'Locales are equale',
|
||||
makeLocalesTest((lang) => import(`../../lang/${lang}.json`))
|
||||
)
|
@ -2,7 +2,9 @@
|
||||
"compilerOptions": {
|
||||
"moduleResolution": "node",
|
||||
"target": "esnext",
|
||||
"module": "esnext",
|
||||
"module": "commonjs",
|
||||
"sourceMap": true,
|
||||
"types": ["node", "heft-jest"],
|
||||
"declaration": true,
|
||||
"outDir": "./lib",
|
||||
"strict": true,
|
||||
|
@ -7,6 +7,7 @@
|
||||
"license": "EPL-2.0",
|
||||
"scripts": {
|
||||
"build": "heft build",
|
||||
"test": "heft test",
|
||||
"lint": "eslint src",
|
||||
"lint:fix": "eslint --fix src",
|
||||
"format": "prettier --write src && eslint --fix src",
|
||||
|
6
plugins/templates-assets/src/__tests__/lang.test.ts
Normal file
6
plugins/templates-assets/src/__tests__/lang.test.ts
Normal file
@ -0,0 +1,6 @@
|
||||
import { makeLocalesTest } from '@hcengineering/platform'
|
||||
|
||||
it(
|
||||
'Locales are equale',
|
||||
makeLocalesTest((lang) => import(`../../lang/${lang}.json`))
|
||||
)
|
@ -2,7 +2,9 @@
|
||||
"compilerOptions": {
|
||||
"moduleResolution": "node",
|
||||
"target": "esnext",
|
||||
"module": "esnext",
|
||||
"module": "commonjs",
|
||||
"sourceMap": true,
|
||||
"types": ["node", "heft-jest"],
|
||||
"declaration": true,
|
||||
"outDir": "./lib",
|
||||
"strict": true,
|
||||
|
@ -7,6 +7,7 @@
|
||||
"template": "@hcengineering/assets-package",
|
||||
"scripts": {
|
||||
"build": "heft build",
|
||||
"test": "heft test",
|
||||
"build:docs": "",
|
||||
"lint": "eslint src",
|
||||
"lint:fix": "eslint --fix src",
|
||||
|
6
plugins/tracker-assets/src/__tests__/lang.test.ts
Normal file
6
plugins/tracker-assets/src/__tests__/lang.test.ts
Normal file
@ -0,0 +1,6 @@
|
||||
import { makeLocalesTest } from '@hcengineering/platform'
|
||||
|
||||
it(
|
||||
'Locales are equale',
|
||||
makeLocalesTest((lang) => import(`../../lang/${lang}.json`))
|
||||
)
|
@ -2,7 +2,9 @@
|
||||
"compilerOptions": {
|
||||
"moduleResolution": "node",
|
||||
"target": "esnext",
|
||||
"module": "esnext",
|
||||
"module": "commonjs",
|
||||
"sourceMap": true,
|
||||
"types": ["node", "heft-jest"],
|
||||
"declaration": true,
|
||||
"outDir": "./lib",
|
||||
"strict": true,
|
||||
|
@ -7,6 +7,7 @@
|
||||
"license": "EPL-2.0",
|
||||
"scripts": {
|
||||
"build": "heft build",
|
||||
"test": "heft test",
|
||||
"build:docs": "",
|
||||
"lint": "eslint src",
|
||||
"lint:fix": "eslint --fix src",
|
||||
|
6
plugins/view-assets/src/__tests__/lang.test.ts
Normal file
6
plugins/view-assets/src/__tests__/lang.test.ts
Normal file
@ -0,0 +1,6 @@
|
||||
import { makeLocalesTest } from '@hcengineering/platform'
|
||||
|
||||
it(
|
||||
'Locales are equale',
|
||||
makeLocalesTest((lang) => import(`../../lang/${lang}.json`))
|
||||
)
|
@ -2,7 +2,9 @@
|
||||
"compilerOptions": {
|
||||
"moduleResolution": "node",
|
||||
"target": "esnext",
|
||||
"module": "esnext",
|
||||
"module": "commonjs",
|
||||
"sourceMap": true,
|
||||
"types": ["node", "heft-jest"],
|
||||
"declaration": true,
|
||||
"outDir": "./lib",
|
||||
"strict": true,
|
||||
|
@ -31,8 +31,8 @@
|
||||
"@hcengineering/ui": "^0.6.2",
|
||||
"@hcengineering/preference": "^0.6.1"
|
||||
},
|
||||
"repository":"https://github.com/hcenginneing/anticrm",
|
||||
"repository": "https://github.com/hcenginneing/anticrm",
|
||||
"publishConfig": {
|
||||
"registry":"https://npm.pkg.github.com"
|
||||
"registry": "https://npm.pkg.github.com"
|
||||
}
|
||||
}
|
||||
|
@ -7,6 +7,7 @@
|
||||
"license": "EPL-2.0",
|
||||
"scripts": {
|
||||
"build": "heft build",
|
||||
"test": "heft test",
|
||||
"lint": "eslint src",
|
||||
"lint:fix": "eslint --fix src",
|
||||
"format": "prettier --write src && eslint --fix src",
|
||||
|
6
plugins/workbench-assets/src/__tests__/lang.test.ts
Normal file
6
plugins/workbench-assets/src/__tests__/lang.test.ts
Normal file
@ -0,0 +1,6 @@
|
||||
import { makeLocalesTest } from '@hcengineering/platform'
|
||||
|
||||
it(
|
||||
'Locales are equale',
|
||||
makeLocalesTest((lang) => import(`../../lang/${lang}.json`))
|
||||
)
|
@ -2,7 +2,9 @@
|
||||
"compilerOptions": {
|
||||
"moduleResolution": "node",
|
||||
"target": "esnext",
|
||||
"module": "esnext",
|
||||
"module": "commonjs",
|
||||
"sourceMap": true,
|
||||
"types": ["node", "heft-jest"],
|
||||
"declaration": true,
|
||||
"outDir": "./lib",
|
||||
"strict": true,
|
||||
|
@ -4,6 +4,7 @@
|
||||
"scripts": {
|
||||
"build": "heft build",
|
||||
"build:docs": "",
|
||||
"test": "heft test",
|
||||
"lint": "eslint src",
|
||||
"lint:fix": "eslint --fix src",
|
||||
"format": "prettier --write src && eslint --fix src",
|
||||
@ -25,6 +26,7 @@
|
||||
},
|
||||
"#replaces": [
|
||||
".eslintrc.js",
|
||||
"tsconfig.json",
|
||||
"config/rig.json"
|
||||
]
|
||||
}
|
||||
|
6
templates/assets/src/__tests__/lang.test.ts
Normal file
6
templates/assets/src/__tests__/lang.test.ts
Normal file
@ -0,0 +1,6 @@
|
||||
import { makeLocalesTest } from '@hcengineering/platform'
|
||||
|
||||
it(
|
||||
'Locales are equale',
|
||||
makeLocalesTest((lang) => import(`../../lang/${lang}.json`))
|
||||
)
|
@ -2,7 +2,9 @@
|
||||
"compilerOptions": {
|
||||
"moduleResolution": "node",
|
||||
"target": "esnext",
|
||||
"module": "esnext",
|
||||
"module": "commonjs",
|
||||
"sourceMap": true,
|
||||
"types": ["node", "heft-jest"],
|
||||
"declaration": true,
|
||||
"outDir": "./lib",
|
||||
"strict": true,
|
||||
|
Loading…
Reference in New Issue
Block a user