Add lang UT (#2297)

Signed-off-by: Dvinyanin Alexandr <dvinyanin.alexandr@gmail.com>
This commit is contained in:
Alex 2022-10-13 15:16:39 +07:00 committed by GitHub
parent 009865fe33
commit d74fcb45a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
92 changed files with 304 additions and 47 deletions

View File

@ -30,8 +30,8 @@
"dependencies": { "dependencies": {
"@hcengineering/platform": "^0.6.7" "@hcengineering/platform": "^0.6.7"
}, },
"repository":"https://github.com/hcengineering/anticrm", "repository": "https://github.com/hcengineering/anticrm",
"publishConfig": { "publishConfig": {
"registry":"https://npm.pkg.github.com" "registry": "https://npm.pkg.github.com"
} }
} }

View File

@ -0,0 +1,6 @@
import { makeLocalesTest } from '@hcengineering/platform'
it(
'Locales are equale',
makeLocalesTest((lang) => import(`../lang/${lang}.json`))
)

View File

@ -29,8 +29,8 @@
"dependencies": { "dependencies": {
"intl-messageformat": "^9.7.1" "intl-messageformat": "^9.7.1"
}, },
"repository":"https://github.com/hcengineering/anticrm", "repository": "https://github.com/hcengineering/anticrm",
"publishConfig": { "publishConfig": {
"registry":"https://npm.pkg.github.com" "registry": "https://npm.pkg.github.com"
} }
} }

View File

@ -25,6 +25,7 @@ export * from './resource'
export * from './i18n' export * from './i18n'
export * from './metadata' export * from './metadata'
export * from './rpc' export * from './rpc'
export * from './testUtils'
addStringsLoader(platformId, async (lang: string) => { addStringsLoader(platformId, async (lang: string) => {
return await import(`./lang/${lang}.json`) return await import(`./lang/${lang}.json`)

View 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))
}
}

View File

@ -35,7 +35,6 @@
"@hcengineering/platform": "^0.6.7", "@hcengineering/platform": "^0.6.7",
"@hcengineering/core": "^0.6.17", "@hcengineering/core": "^0.6.17",
"@hcengineering/ui": "^0.6.2", "@hcengineering/ui": "^0.6.2",
"svelte": "^3.47", "svelte": "^3.47",
"@tiptap/core": "~2.0.0-beta.181", "@tiptap/core": "~2.0.0-beta.181",
"@tiptap/starter-kit": "~2.0.0-beta.190", "@tiptap/starter-kit": "~2.0.0-beta.190",

View File

@ -33,8 +33,8 @@
"svelte": "^3.47", "svelte": "^3.47",
"@hcengineering/platform": "^0.6.7" "@hcengineering/platform": "^0.6.7"
}, },
"repository":"https://github.com/hcenginneing/anticrm", "repository": "https://github.com/hcenginneing/anticrm",
"publishConfig": { "publishConfig": {
"registry":"https://npm.pkg.github.com" "registry": "https://npm.pkg.github.com"
} }
} }

View File

@ -36,10 +36,10 @@
"@hcengineering/platform": "^0.6.7", "@hcengineering/platform": "^0.6.7",
"@hcengineering/theme": "^0.6.1", "@hcengineering/theme": "^0.6.1",
"@hcengineering/core": "^0.6.17", "@hcengineering/core": "^0.6.17",
"svelte": "^3.47" "svelte": "^3.47"
}, },
"repository":"https://github.com/hcenginneing/anticrm", "repository": "https://github.com/hcenginneing/anticrm",
"publishConfig": { "publishConfig": {
"registry":"https://npm.pkg.github.com" "registry": "https://npm.pkg.github.com"
} }
} }

View File

@ -7,6 +7,7 @@
"license": "EPL-2.0", "license": "EPL-2.0",
"scripts": { "scripts": {
"build": "heft build", "build": "heft build",
"test": "heft test",
"lint": "eslint src", "lint": "eslint src",
"lint:fix": "eslint --fix src", "lint:fix": "eslint --fix src",
"format": "prettier --write src && eslint --fix src", "format": "prettier --write src && eslint --fix src",

View File

@ -0,0 +1,6 @@
import { makeLocalesTest } from '@hcengineering/platform'
it(
'Locales are equale',
makeLocalesTest((lang) => import(`../../lang/${lang}.json`))
)

View File

@ -2,7 +2,9 @@
"compilerOptions": { "compilerOptions": {
"moduleResolution": "node", "moduleResolution": "node",
"target": "esnext", "target": "esnext",
"module": "esnext", "module": "commonjs",
"sourceMap": true,
"types": ["node", "heft-jest"],
"declaration": true, "declaration": true,
"outDir": "./lib", "outDir": "./lib",
"strict": true, "strict": true,

View File

@ -8,6 +8,7 @@
"scripts": { "scripts": {
"build": "heft build", "build": "heft build",
"build:docs": "", "build:docs": "",
"test": "heft test",
"lint": "eslint src", "lint": "eslint src",
"lint:fix": "eslint --fix src", "lint:fix": "eslint --fix src",
"format": "prettier --write src && eslint --fix src", "format": "prettier --write src && eslint --fix src",

View File

@ -0,0 +1,6 @@
import { makeLocalesTest } from '@hcengineering/platform'
it(
'Locales are equale',
makeLocalesTest((lang) => import(`../../lang/${lang}.json`))
)

View File

@ -2,7 +2,9 @@
"compilerOptions": { "compilerOptions": {
"moduleResolution": "node", "moduleResolution": "node",
"target": "esnext", "target": "esnext",
"module": "esnext", "module": "commonjs",
"sourceMap": true,
"types": ["node", "heft-jest"],
"declaration": true, "declaration": true,
"outDir": "./lib", "outDir": "./lib",
"strict": true, "strict": true,

View File

@ -7,6 +7,7 @@
"license": "EPL-2.0", "license": "EPL-2.0",
"scripts": { "scripts": {
"build": "heft build", "build": "heft build",
"test": "heft test",
"build:docs": "", "build:docs": "",
"lint": "eslint src", "lint": "eslint src",
"lint:fix": "eslint --fix src", "lint:fix": "eslint --fix src",

View File

@ -0,0 +1,6 @@
import { makeLocalesTest } from '@hcengineering/platform'
it(
'Locales are equale',
makeLocalesTest((lang) => import(`../../lang/${lang}.json`))
)

View File

@ -2,7 +2,9 @@
"compilerOptions": { "compilerOptions": {
"moduleResolution": "node", "moduleResolution": "node",
"target": "esnext", "target": "esnext",
"module": "esnext", "module": "commonjs",
"sourceMap": true,
"types": ["node", "heft-jest"],
"declaration": true, "declaration": true,
"outDir": "./lib", "outDir": "./lib",
"strict": true, "strict": true,

View File

@ -7,6 +7,7 @@
"license": "EPL-2.0", "license": "EPL-2.0",
"scripts": { "scripts": {
"build": "heft build", "build": "heft build",
"test": "heft test",
"build:docs": "", "build:docs": "",
"lint": "eslint src", "lint": "eslint src",
"lint:fix": "eslint --fix src", "lint:fix": "eslint --fix src",

View File

@ -0,0 +1,6 @@
import { makeLocalesTest } from '@hcengineering/platform'
it(
'Locales are equale',
makeLocalesTest((lang) => import(`../../lang/${lang}.json`))
)

View File

@ -2,7 +2,9 @@
"compilerOptions": { "compilerOptions": {
"moduleResolution": "node", "moduleResolution": "node",
"target": "esnext", "target": "esnext",
"module": "esnext", "module": "commonjs",
"sourceMap": true,
"types": ["node", "heft-jest"],
"declaration": true, "declaration": true,
"outDir": "./lib", "outDir": "./lib",
"strict": true, "strict": true,

View File

@ -31,6 +31,8 @@
"CreateReminder": "Создать напоминание", "CreateReminder": "Создать напоминание",
"CreatedReminder": "Создал напоминание", "CreatedReminder": "Создал напоминание",
"Reminders": "Напоминания", "Reminders": "Напоминания",
"Shift": "Сдвиг",
"State": "Состояние",
"NoReminders": "Нет напоминаний", "NoReminders": "Нет напоминаний",
"AllDay": "Весь день", "AllDay": "Весь день",
"AndMore": "И еще {count}", "AndMore": "И еще {count}",

View File

@ -7,6 +7,7 @@
"license": "EPL-2.0", "license": "EPL-2.0",
"scripts": { "scripts": {
"build": "heft build", "build": "heft build",
"test": "heft test",
"build:docs": "", "build:docs": "",
"lint": "eslint src", "lint": "eslint src",
"lint:fix": "eslint --fix src", "lint:fix": "eslint --fix src",

View File

@ -0,0 +1,6 @@
import { makeLocalesTest } from '@hcengineering/platform'
it(
'Locales are equale',
makeLocalesTest((lang) => import(`../../lang/${lang}.json`))
)

View File

@ -2,7 +2,9 @@
"compilerOptions": { "compilerOptions": {
"moduleResolution": "node", "moduleResolution": "node",
"target": "esnext", "target": "esnext",
"module": "esnext", "module": "commonjs",
"sourceMap": true,
"types": ["node", "heft-jest"],
"declaration": true, "declaration": true,
"outDir": "./lib", "outDir": "./lib",
"strict": true, "strict": true,

View File

@ -30,6 +30,7 @@
"Replies": "Ответы", "Replies": "Ответы",
"LastReply": "Последний ответ", "LastReply": "Последний ответ",
"RepliesCount": "{replies, plural, =1 {# ответ} =2 {# ответа} =3 {# ответа} =4 {# ответа} other {# ответов}}", "RepliesCount": "{replies, plural, =1 {# ответ} =2 {# ответа} =3 {# ответа} =4 {# ответа} other {# ответов}}",
"Topic": "Топик",
"Thread": "Обсуждение", "Thread": "Обсуждение",
"Threads": "Обсуждения", "Threads": "Обсуждения",
"New": "Новое", "New": "Новое",

View File

@ -7,6 +7,7 @@
"license": "EPL-2.0", "license": "EPL-2.0",
"scripts": { "scripts": {
"build": "heft build", "build": "heft build",
"test": "heft test",
"build:docs": "", "build:docs": "",
"lint": "eslint src", "lint": "eslint src",
"lint:fix": "eslint --fix src", "lint:fix": "eslint --fix src",

View File

@ -0,0 +1,6 @@
import { makeLocalesTest } from '@hcengineering/platform'
it(
'Locales are equale',
makeLocalesTest((lang) => import(`../../lang/${lang}.json`))
)

View File

@ -2,7 +2,9 @@
"compilerOptions": { "compilerOptions": {
"moduleResolution": "node", "moduleResolution": "node",
"target": "esnext", "target": "esnext",
"module": "esnext", "module": "commonjs",
"sourceMap": true,
"types": ["node", "heft-jest"],
"declaration": true, "declaration": true,
"outDir": "./lib", "outDir": "./lib",
"strict": true, "strict": true,

View File

@ -30,8 +30,8 @@
"@hcengineering/core": "^0.6.17", "@hcengineering/core": "^0.6.17",
"@hcengineering/client": "^0.6.3" "@hcengineering/client": "^0.6.3"
}, },
"repository":"https://github.com/hcengineering/anticrm", "repository": "https://github.com/hcengineering/anticrm",
"publishConfig": { "publishConfig": {
"registry":"https://npm.pkg.github.com" "registry": "https://npm.pkg.github.com"
} }
} }

View File

@ -29,8 +29,8 @@
"@hcengineering/platform": "^0.6.7", "@hcengineering/platform": "^0.6.7",
"@hcengineering/core": "^0.6.17" "@hcengineering/core": "^0.6.17"
}, },
"repository":"https://github.com/hcengineering/anticrm", "repository": "https://github.com/hcengineering/anticrm",
"publishConfig": { "publishConfig": {
"registry":"https://npm.pkg.github.com" "registry": "https://npm.pkg.github.com"
} }
} }

View File

@ -7,6 +7,7 @@
"license": "EPL-2.0", "license": "EPL-2.0",
"scripts": { "scripts": {
"build": "heft build", "build": "heft build",
"test": "heft test",
"build:docs": "", "build:docs": "",
"lint": "eslint src", "lint": "eslint src",
"lint:fix": "eslint --fix src", "lint:fix": "eslint --fix src",

View File

@ -0,0 +1,6 @@
import { makeLocalesTest } from '@hcengineering/platform'
it(
'Locales are equale',
makeLocalesTest((lang) => import(`../../lang/${lang}.json`))
)

View File

@ -2,7 +2,9 @@
"compilerOptions": { "compilerOptions": {
"moduleResolution": "node", "moduleResolution": "node",
"target": "esnext", "target": "esnext",
"module": "esnext", "module": "commonjs",
"sourceMap": true,
"types": ["node", "heft-jest"],
"declaration": true, "declaration": true,
"outDir": "./lib", "outDir": "./lib",
"strict": true, "strict": true,

View File

@ -31,8 +31,8 @@
"@hcengineering/core": "^0.6.17", "@hcengineering/core": "^0.6.17",
"@hcengineering/view": "^0.6.1" "@hcengineering/view": "^0.6.1"
}, },
"repository":"https://github.com/hcengineering/anticrm", "repository": "https://github.com/hcengineering/anticrm",
"publishConfig": { "publishConfig": {
"registry":"https://npm.pkg.github.com" "registry": "https://npm.pkg.github.com"
} }
} }

View File

@ -7,6 +7,7 @@
"license": "EPL-2.0", "license": "EPL-2.0",
"scripts": { "scripts": {
"build": "heft build", "build": "heft build",
"test": "heft test",
"lint": "eslint src", "lint": "eslint src",
"lint:fix": "eslint --fix src", "lint:fix": "eslint --fix src",
"format": "prettier --write src && eslint --fix src", "format": "prettier --write src && eslint --fix src",

View File

@ -0,0 +1,6 @@
import { makeLocalesTest } from '@hcengineering/platform'
it(
'Locales are equale',
makeLocalesTest((lang) => import(`../../lang/${lang}.json`))
)

View File

@ -2,7 +2,9 @@
"compilerOptions": { "compilerOptions": {
"moduleResolution": "node", "moduleResolution": "node",
"target": "esnext", "target": "esnext",
"module": "esnext", "module": "commonjs",
"sourceMap": true,
"types": ["node", "heft-jest"],
"declaration": true, "declaration": true,
"outDir": "./lib", "outDir": "./lib",
"strict": true, "strict": true,

View File

@ -32,6 +32,7 @@
"EditRequest": "Edit {type}", "EditRequest": "Edit {type}",
"Request": "Request", "Request": "Request",
"Staff": "Worker", "Staff": "Worker",
"Member": "Member",
"Members": "Members", "Members": "Members",
"NoMembers": "No members added", "NoMembers": "No members added",
"AddMember": "Add member" "AddMember": "Add member"

View File

@ -7,6 +7,7 @@
"license": "EPL-2.0", "license": "EPL-2.0",
"scripts": { "scripts": {
"build": "heft build", "build": "heft build",
"test": "heft test",
"build:docs": "", "build:docs": "",
"lint": "eslint src", "lint": "eslint src",
"lint:fix": "eslint --fix src", "lint:fix": "eslint --fix src",

View File

@ -0,0 +1,6 @@
import { makeLocalesTest } from '@hcengineering/platform'
it(
'Locales are equale',
makeLocalesTest((lang) => import(`../../lang/${lang}.json`))
)

View File

@ -2,7 +2,9 @@
"compilerOptions": { "compilerOptions": {
"moduleResolution": "node", "moduleResolution": "node",
"target": "esnext", "target": "esnext",
"module": "esnext", "module": "commonjs",
"sourceMap": true,
"types": ["node", "heft-jest"],
"declaration": true, "declaration": true,
"outDir": "./lib", "outDir": "./lib",
"strict": true, "strict": true,

View File

@ -7,6 +7,7 @@
"license": "EPL-2.0", "license": "EPL-2.0",
"scripts": { "scripts": {
"build": "heft build", "build": "heft build",
"test": "heft test",
"lint": "eslint src", "lint": "eslint src",
"lint:fix": "eslint --fix src", "lint:fix": "eslint --fix src",
"format": "prettier --write src && eslint --fix src", "format": "prettier --write src && eslint --fix src",

View File

@ -0,0 +1,6 @@
import { makeLocalesTest } from '@hcengineering/platform'
it(
'Locales are equale',
makeLocalesTest((lang) => import(`../../lang/${lang}.json`))
)

View File

@ -2,7 +2,9 @@
"compilerOptions": { "compilerOptions": {
"moduleResolution": "node", "moduleResolution": "node",
"target": "esnext", "target": "esnext",
"module": "esnext", "module": "commonjs",
"sourceMap": true,
"types": ["node", "heft-jest"],
"declaration": true, "declaration": true,
"outDir": "./lib", "outDir": "./lib",
"strict": true, "strict": true,

View File

@ -7,6 +7,7 @@
"license": "EPL-2.0", "license": "EPL-2.0",
"scripts": { "scripts": {
"build": "heft build", "build": "heft build",
"test": "heft test",
"build:docs": "", "build:docs": "",
"lint": "eslint src", "lint": "eslint src",
"lint:fix": "eslint --fix src", "lint:fix": "eslint --fix src",

View File

@ -0,0 +1,6 @@
import { makeLocalesTest } from '@hcengineering/platform'
it(
'Locales are equale',
makeLocalesTest((lang) => import(`../../lang/${lang}.json`))
)

View File

@ -2,7 +2,9 @@
"compilerOptions": { "compilerOptions": {
"moduleResolution": "node", "moduleResolution": "node",
"target": "esnext", "target": "esnext",
"module": "esnext", "module": "commonjs",
"sourceMap": true,
"types": ["node", "heft-jest"],
"declaration": true, "declaration": true,
"outDir": "./lib", "outDir": "./lib",
"strict": true, "strict": true,

View File

@ -7,6 +7,7 @@
"license": "EPL-2.0", "license": "EPL-2.0",
"scripts": { "scripts": {
"build": "heft build", "build": "heft build",
"test": "heft test",
"build:docs": "", "build:docs": "",
"lint": "eslint src", "lint": "eslint src",
"lint:fix": "eslint --fix src", "lint:fix": "eslint --fix src",

View File

@ -0,0 +1,6 @@
import { makeLocalesTest } from '@hcengineering/platform'
it(
'Locales are equale',
makeLocalesTest((lang) => import(`../../lang/${lang}.json`))
)

View File

@ -2,7 +2,9 @@
"compilerOptions": { "compilerOptions": {
"moduleResolution": "node", "moduleResolution": "node",
"target": "esnext", "target": "esnext",
"module": "esnext", "module": "commonjs",
"sourceMap": true,
"types": ["node", "heft-jest"],
"declaration": true, "declaration": true,
"outDir": "./lib", "outDir": "./lib",
"strict": true, "strict": true,

View File

@ -7,6 +7,7 @@
"license": "EPL-2.0", "license": "EPL-2.0",
"scripts": { "scripts": {
"build": "heft build", "build": "heft build",
"test": "heft test",
"build:docs": "", "build:docs": "",
"lint": "eslint src", "lint": "eslint src",
"lint:fix": "eslint --fix src", "lint:fix": "eslint --fix src",

View File

@ -0,0 +1,6 @@
import { makeLocalesTest } from '@hcengineering/platform'
it(
'Locales are equale',
makeLocalesTest((lang) => import(`../../lang/${lang}.json`))
)

View File

@ -2,7 +2,9 @@
"compilerOptions": { "compilerOptions": {
"moduleResolution": "node", "moduleResolution": "node",
"target": "esnext", "target": "esnext",
"module": "esnext", "module": "commonjs",
"sourceMap": true,
"types": ["node", "heft-jest"],
"declaration": true, "declaration": true,
"outDir": "./lib", "outDir": "./lib",
"strict": true, "strict": true,

View File

@ -36,8 +36,8 @@
"@hcengineering/core": "^0.6.17", "@hcengineering/core": "^0.6.17",
"@hcengineering/ui": "^0.6.2" "@hcengineering/ui": "^0.6.2"
}, },
"repository":"https://github.com/hcengineering/anticrm", "repository": "https://github.com/hcengineering/anticrm",
"publishConfig": { "publishConfig": {
"registry":"https://npm.pkg.github.com" "registry": "https://npm.pkg.github.com"
} }
} }

View File

@ -7,6 +7,7 @@
"license": "EPL-2.0", "license": "EPL-2.0",
"scripts": { "scripts": {
"build": "heft build", "build": "heft build",
"test": "heft test",
"lint": "eslint src", "lint": "eslint src",
"lint:fix": "eslint --fix src", "lint:fix": "eslint --fix src",
"format": "prettier --write src && eslint --fix src", "format": "prettier --write src && eslint --fix src",

View File

@ -0,0 +1,6 @@
import { makeLocalesTest } from '@hcengineering/platform'
it(
'Locales are equale',
makeLocalesTest((lang) => import(`../../lang/${lang}.json`))
)

View File

@ -2,7 +2,9 @@
"compilerOptions": { "compilerOptions": {
"moduleResolution": "node", "moduleResolution": "node",
"target": "esnext", "target": "esnext",
"module": "esnext", "module": "commonjs",
"sourceMap": true,
"types": ["node", "heft-jest"],
"declaration": true, "declaration": true,
"outDir": "./lib", "outDir": "./lib",
"strict": true, "strict": true,

View File

@ -30,8 +30,8 @@
"@hcengineering/core": "^0.6.17", "@hcengineering/core": "^0.6.17",
"@hcengineering/ui": "^0.6.2" "@hcengineering/ui": "^0.6.2"
}, },
"repository":"https://github.com/hcenginneing/anticrm", "repository": "https://github.com/hcenginneing/anticrm",
"publishConfig": { "publishConfig": {
"registry":"https://npm.pkg.github.com" "registry": "https://npm.pkg.github.com"
} }
} }

View File

@ -7,6 +7,7 @@
"license": "EPL-2.0", "license": "EPL-2.0",
"scripts": { "scripts": {
"build": "heft build", "build": "heft build",
"test": "heft test",
"build:docs": "", "build:docs": "",
"lint": "eslint src", "lint": "eslint src",
"lint:fix": "eslint --fix src", "lint:fix": "eslint --fix src",

View File

@ -0,0 +1,6 @@
import { makeLocalesTest } from '@hcengineering/platform'
it(
'Locales are equale',
makeLocalesTest((lang) => import(`../../lang/${lang}.json`))
)

View File

@ -2,7 +2,9 @@
"compilerOptions": { "compilerOptions": {
"moduleResolution": "node", "moduleResolution": "node",
"target": "esnext", "target": "esnext",
"module": "esnext", "module": "commonjs",
"sourceMap": true,
"types": ["node", "heft-jest"],
"declaration": true, "declaration": true,
"outDir": "./lib", "outDir": "./lib",
"strict": true, "strict": true,

View File

@ -37,7 +37,7 @@
"DeleteAttributeExistConfirm": "Do you want to delete this attribute? Data will be lost", "DeleteAttributeExistConfirm": "Do you want to delete this attribute? Data will be lost",
"DeleteMixin": "Delete Mixin", "DeleteMixin": "Delete Mixin",
"DeleteMixinConfirm": "Do you want to delete this 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", "Attribute": "Attribute",
"Custom": "Custom", "Custom": "Custom",
"Type": "Type", "Type": "Type",

View File

@ -35,6 +35,9 @@
"DeleteAttribute": "Удалить атрибут", "DeleteAttribute": "Удалить атрибут",
"DeleteAttributeConfirm": "Вы действительно хотите удалить этот атрибут?", "DeleteAttributeConfirm": "Вы действительно хотите удалить этот атрибут?",
"DeleteAttributeExistConfirm": "Вы действительно хотите удалить этот атрибут? Данные будут утеряны", "DeleteAttributeExistConfirm": "Вы действительно хотите удалить этот атрибут? Данные будут утеряны",
"DeleteMixin": "Удалить Миксин",
"DeleteMixinConfirm": "Вы действительно хотите удалить этот Миксин?",
"DeleteMixinExistConfirm": "Вы действительно хотите удалить этот Миксин? Данные будут утеряны",
"Attribute": "Атрибут", "Attribute": "Атрибут",
"Custom": "Пользовательский", "Custom": "Пользовательский",
"Type": "Тип", "Type": "Тип",

View File

@ -7,6 +7,7 @@
"license": "EPL-2.0", "license": "EPL-2.0",
"scripts": { "scripts": {
"build": "heft build", "build": "heft build",
"test": "heft test",
"build:docs": "", "build:docs": "",
"lint": "eslint src", "lint": "eslint src",
"lint:fix": "eslint --fix src", "lint:fix": "eslint --fix src",

View File

@ -0,0 +1,6 @@
import { makeLocalesTest } from '@hcengineering/platform'
it(
'Locales are equale',
makeLocalesTest((lang) => import(`../../lang/${lang}.json`))
)

View File

@ -2,7 +2,9 @@
"compilerOptions": { "compilerOptions": {
"moduleResolution": "node", "moduleResolution": "node",
"target": "esnext", "target": "esnext",
"module": "esnext", "module": "commonjs",
"sourceMap": true,
"types": ["node", "heft-jest"],
"declaration": true, "declaration": true,
"outDir": "./lib", "outDir": "./lib",
"strict": true, "strict": true,

View File

@ -30,6 +30,7 @@
"CategoryTagsLabel": "Теги категории", "CategoryTagsLabel": "Теги категории",
"OtherCategoryLabel": "Другое", "OtherCategoryLabel": "Другое",
"AllCategories": "Все категории", "AllCategories": "Все категории",
"DefaultLabel": "Категория по умолчанию",
"SelectAll": "Выбрать все", "SelectAll": "Выбрать все",
"SelectNone": "Выбрать ничего", "SelectNone": "Выбрать ничего",
"ApplyTags": "Применить" "ApplyTags": "Применить"

View File

@ -7,6 +7,7 @@
"license": "EPL-2.0", "license": "EPL-2.0",
"scripts": { "scripts": {
"build": "heft build", "build": "heft build",
"test": "heft test",
"lint": "eslint src", "lint": "eslint src",
"lint:fix": "eslint --fix src", "lint:fix": "eslint --fix src",
"format": "prettier --write src && eslint --fix src", "format": "prettier --write src && eslint --fix src",

View File

@ -0,0 +1,6 @@
import { makeLocalesTest } from '@hcengineering/platform'
it(
'Locales are equale',
makeLocalesTest((lang) => import(`../../lang/${lang}.json`))
)

View File

@ -2,7 +2,9 @@
"compilerOptions": { "compilerOptions": {
"moduleResolution": "node", "moduleResolution": "node",
"target": "esnext", "target": "esnext",
"module": "esnext", "module": "commonjs",
"sourceMap": true,
"types": ["node", "heft-jest"],
"declaration": true, "declaration": true,
"outDir": "./lib", "outDir": "./lib",
"strict": true, "strict": true,

View File

@ -7,6 +7,7 @@
"license": "EPL-2.0", "license": "EPL-2.0",
"scripts": { "scripts": {
"build": "heft build", "build": "heft build",
"test": "heft test",
"build:docs": "", "build:docs": "",
"lint": "eslint src", "lint": "eslint src",
"lint:fix": "eslint --fix src", "lint:fix": "eslint --fix src",

View File

@ -0,0 +1,6 @@
import { makeLocalesTest } from '@hcengineering/platform'
it(
'Locales are equale',
makeLocalesTest((lang) => import(`../../lang/${lang}.json`))
)

View File

@ -2,7 +2,9 @@
"compilerOptions": { "compilerOptions": {
"moduleResolution": "node", "moduleResolution": "node",
"target": "esnext", "target": "esnext",
"module": "esnext", "module": "commonjs",
"sourceMap": true,
"types": ["node", "heft-jest"],
"declaration": true, "declaration": true,
"outDir": "./lib", "outDir": "./lib",
"strict": true, "strict": true,

View File

@ -7,6 +7,7 @@
"license": "EPL-2.0", "license": "EPL-2.0",
"scripts": { "scripts": {
"build": "heft build", "build": "heft build",
"test": "heft test",
"lint": "eslint src", "lint": "eslint src",
"lint:fix": "eslint --fix src", "lint:fix": "eslint --fix src",
"format": "prettier --write src && eslint --fix src", "format": "prettier --write src && eslint --fix src",

View File

@ -0,0 +1,6 @@
import { makeLocalesTest } from '@hcengineering/platform'
it(
'Locales are equale',
makeLocalesTest((lang) => import(`../../lang/${lang}.json`))
)

View File

@ -2,7 +2,9 @@
"compilerOptions": { "compilerOptions": {
"moduleResolution": "node", "moduleResolution": "node",
"target": "esnext", "target": "esnext",
"module": "esnext", "module": "commonjs",
"sourceMap": true,
"types": ["node", "heft-jest"],
"declaration": true, "declaration": true,
"outDir": "./lib", "outDir": "./lib",
"strict": true, "strict": true,

View File

@ -7,6 +7,7 @@
"license": "EPL-2.0", "license": "EPL-2.0",
"scripts": { "scripts": {
"build": "heft build", "build": "heft build",
"test": "heft test",
"lint": "eslint src", "lint": "eslint src",
"lint:fix": "eslint --fix src", "lint:fix": "eslint --fix src",
"format": "prettier --write src && eslint --fix src", "format": "prettier --write src && eslint --fix src",

View File

@ -0,0 +1,6 @@
import { makeLocalesTest } from '@hcengineering/platform'
it(
'Locales are equale',
makeLocalesTest((lang) => import(`../../lang/${lang}.json`))
)

View File

@ -2,7 +2,9 @@
"compilerOptions": { "compilerOptions": {
"moduleResolution": "node", "moduleResolution": "node",
"target": "esnext", "target": "esnext",
"module": "esnext", "module": "commonjs",
"sourceMap": true,
"types": ["node", "heft-jest"],
"declaration": true, "declaration": true,
"outDir": "./lib", "outDir": "./lib",
"strict": true, "strict": true,

View File

@ -7,6 +7,7 @@
"template": "@hcengineering/assets-package", "template": "@hcengineering/assets-package",
"scripts": { "scripts": {
"build": "heft build", "build": "heft build",
"test": "heft test",
"build:docs": "", "build:docs": "",
"lint": "eslint src", "lint": "eslint src",
"lint:fix": "eslint --fix src", "lint:fix": "eslint --fix src",

View File

@ -0,0 +1,6 @@
import { makeLocalesTest } from '@hcengineering/platform'
it(
'Locales are equale',
makeLocalesTest((lang) => import(`../../lang/${lang}.json`))
)

View File

@ -2,7 +2,9 @@
"compilerOptions": { "compilerOptions": {
"moduleResolution": "node", "moduleResolution": "node",
"target": "esnext", "target": "esnext",
"module": "esnext", "module": "commonjs",
"sourceMap": true,
"types": ["node", "heft-jest"],
"declaration": true, "declaration": true,
"outDir": "./lib", "outDir": "./lib",
"strict": true, "strict": true,

View File

@ -7,6 +7,7 @@
"license": "EPL-2.0", "license": "EPL-2.0",
"scripts": { "scripts": {
"build": "heft build", "build": "heft build",
"test": "heft test",
"build:docs": "", "build:docs": "",
"lint": "eslint src", "lint": "eslint src",
"lint:fix": "eslint --fix src", "lint:fix": "eslint --fix src",

View File

@ -0,0 +1,6 @@
import { makeLocalesTest } from '@hcengineering/platform'
it(
'Locales are equale',
makeLocalesTest((lang) => import(`../../lang/${lang}.json`))
)

View File

@ -2,7 +2,9 @@
"compilerOptions": { "compilerOptions": {
"moduleResolution": "node", "moduleResolution": "node",
"target": "esnext", "target": "esnext",
"module": "esnext", "module": "commonjs",
"sourceMap": true,
"types": ["node", "heft-jest"],
"declaration": true, "declaration": true,
"outDir": "./lib", "outDir": "./lib",
"strict": true, "strict": true,

View File

@ -31,8 +31,8 @@
"@hcengineering/ui": "^0.6.2", "@hcengineering/ui": "^0.6.2",
"@hcengineering/preference": "^0.6.1" "@hcengineering/preference": "^0.6.1"
}, },
"repository":"https://github.com/hcenginneing/anticrm", "repository": "https://github.com/hcenginneing/anticrm",
"publishConfig": { "publishConfig": {
"registry":"https://npm.pkg.github.com" "registry": "https://npm.pkg.github.com"
} }
} }

View File

@ -7,6 +7,7 @@
"license": "EPL-2.0", "license": "EPL-2.0",
"scripts": { "scripts": {
"build": "heft build", "build": "heft build",
"test": "heft test",
"lint": "eslint src", "lint": "eslint src",
"lint:fix": "eslint --fix src", "lint:fix": "eslint --fix src",
"format": "prettier --write src && eslint --fix src", "format": "prettier --write src && eslint --fix src",

View File

@ -0,0 +1,6 @@
import { makeLocalesTest } from '@hcengineering/platform'
it(
'Locales are equale',
makeLocalesTest((lang) => import(`../../lang/${lang}.json`))
)

View File

@ -2,7 +2,9 @@
"compilerOptions": { "compilerOptions": {
"moduleResolution": "node", "moduleResolution": "node",
"target": "esnext", "target": "esnext",
"module": "esnext", "module": "commonjs",
"sourceMap": true,
"types": ["node", "heft-jest"],
"declaration": true, "declaration": true,
"outDir": "./lib", "outDir": "./lib",
"strict": true, "strict": true,

View File

@ -4,6 +4,7 @@
"scripts": { "scripts": {
"build": "heft build", "build": "heft build",
"build:docs": "", "build:docs": "",
"test": "heft test",
"lint": "eslint src", "lint": "eslint src",
"lint:fix": "eslint --fix src", "lint:fix": "eslint --fix src",
"format": "prettier --write src && eslint --fix src", "format": "prettier --write src && eslint --fix src",
@ -25,6 +26,7 @@
}, },
"#replaces": [ "#replaces": [
".eslintrc.js", ".eslintrc.js",
"tsconfig.json",
"config/rig.json" "config/rig.json"
] ]
} }

View File

@ -0,0 +1,6 @@
import { makeLocalesTest } from '@hcengineering/platform'
it(
'Locales are equale',
makeLocalesTest((lang) => import(`../../lang/${lang}.json`))
)

View File

@ -2,7 +2,9 @@
"compilerOptions": { "compilerOptions": {
"moduleResolution": "node", "moduleResolution": "node",
"target": "esnext", "target": "esnext",
"module": "esnext", "module": "commonjs",
"sourceMap": true,
"types": ["node", "heft-jest"],
"declaration": true, "declaration": true,
"outDir": "./lib", "outDir": "./lib",
"strict": true, "strict": true,