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": {
"@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"
}
}

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": {
"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"
}
}

View File

@ -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`)

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/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",

View File

@ -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"
}
}

View File

@ -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"
}
}

View File

@ -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",

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": {
"moduleResolution": "node",
"target": "esnext",
"module": "esnext",
"module": "commonjs",
"sourceMap": true,
"types": ["node", "heft-jest"],
"declaration": true,
"outDir": "./lib",
"strict": true,

View File

@ -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",

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": {
"moduleResolution": "node",
"target": "esnext",
"module": "esnext",
"module": "commonjs",
"sourceMap": true,
"types": ["node", "heft-jest"],
"declaration": true,
"outDir": "./lib",
"strict": true,

View File

@ -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",

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": {
"moduleResolution": "node",
"target": "esnext",
"module": "esnext",
"module": "commonjs",
"sourceMap": true,
"types": ["node", "heft-jest"],
"declaration": true,
"outDir": "./lib",
"strict": true,

View File

@ -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",

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": {
"moduleResolution": "node",
"target": "esnext",
"module": "esnext",
"module": "commonjs",
"sourceMap": true,
"types": ["node", "heft-jest"],
"declaration": true,
"outDir": "./lib",
"strict": true,

View File

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

View File

@ -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",

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": {
"moduleResolution": "node",
"target": "esnext",
"module": "esnext",
"module": "commonjs",
"sourceMap": true,
"types": ["node", "heft-jest"],
"declaration": true,
"outDir": "./lib",
"strict": true,

View File

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

View File

@ -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",

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": {
"moduleResolution": "node",
"target": "esnext",
"module": "esnext",
"module": "commonjs",
"sourceMap": true,
"types": ["node", "heft-jest"],
"declaration": true,
"outDir": "./lib",
"strict": true,

View File

@ -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"
}
}

View File

@ -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"
}
}

View File

@ -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",

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": {
"moduleResolution": "node",
"target": "esnext",
"module": "esnext",
"module": "commonjs",
"sourceMap": true,
"types": ["node", "heft-jest"],
"declaration": true,
"outDir": "./lib",
"strict": true,

View File

@ -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"
}
}

View File

@ -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",

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": {
"moduleResolution": "node",
"target": "esnext",
"module": "esnext",
"module": "commonjs",
"sourceMap": true,
"types": ["node", "heft-jest"],
"declaration": true,
"outDir": "./lib",
"strict": true,

View File

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

View File

@ -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",

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": {
"moduleResolution": "node",
"target": "esnext",
"module": "esnext",
"module": "commonjs",
"sourceMap": true,
"types": ["node", "heft-jest"],
"declaration": true,
"outDir": "./lib",
"strict": true,

View File

@ -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",

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": {
"moduleResolution": "node",
"target": "esnext",
"module": "esnext",
"module": "commonjs",
"sourceMap": true,
"types": ["node", "heft-jest"],
"declaration": true,
"outDir": "./lib",
"strict": true,

View File

@ -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",

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": {
"moduleResolution": "node",
"target": "esnext",
"module": "esnext",
"module": "commonjs",
"sourceMap": true,
"types": ["node", "heft-jest"],
"declaration": true,
"outDir": "./lib",
"strict": true,

View File

@ -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",

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": {
"moduleResolution": "node",
"target": "esnext",
"module": "esnext",
"module": "commonjs",
"sourceMap": true,
"types": ["node", "heft-jest"],
"declaration": true,
"outDir": "./lib",
"strict": true,

View File

@ -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",

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": {
"moduleResolution": "node",
"target": "esnext",
"module": "esnext",
"module": "commonjs",
"sourceMap": true,
"types": ["node", "heft-jest"],
"declaration": true,
"outDir": "./lib",
"strict": true,

View File

@ -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"
}
}

View File

@ -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",

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": {
"moduleResolution": "node",
"target": "esnext",
"module": "esnext",
"module": "commonjs",
"sourceMap": true,
"types": ["node", "heft-jest"],
"declaration": true,
"outDir": "./lib",
"strict": true,

View File

@ -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"
}
}

View File

@ -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",

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": {
"moduleResolution": "node",
"target": "esnext",
"module": "esnext",
"module": "commonjs",
"sourceMap": true,
"types": ["node", "heft-jest"],
"declaration": true,
"outDir": "./lib",
"strict": true,

View File

@ -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",

View File

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

View File

@ -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",

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": {
"moduleResolution": "node",
"target": "esnext",
"module": "esnext",
"module": "commonjs",
"sourceMap": true,
"types": ["node", "heft-jest"],
"declaration": true,
"outDir": "./lib",
"strict": true,

View File

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

View File

@ -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",

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": {
"moduleResolution": "node",
"target": "esnext",
"module": "esnext",
"module": "commonjs",
"sourceMap": true,
"types": ["node", "heft-jest"],
"declaration": true,
"outDir": "./lib",
"strict": true,

View File

@ -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",

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": {
"moduleResolution": "node",
"target": "esnext",
"module": "esnext",
"module": "commonjs",
"sourceMap": true,
"types": ["node", "heft-jest"],
"declaration": true,
"outDir": "./lib",
"strict": true,

View File

@ -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",

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": {
"moduleResolution": "node",
"target": "esnext",
"module": "esnext",
"module": "commonjs",
"sourceMap": true,
"types": ["node", "heft-jest"],
"declaration": true,
"outDir": "./lib",
"strict": true,

View File

@ -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",

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": {
"moduleResolution": "node",
"target": "esnext",
"module": "esnext",
"module": "commonjs",
"sourceMap": true,
"types": ["node", "heft-jest"],
"declaration": true,
"outDir": "./lib",
"strict": true,

View File

@ -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",

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": {
"moduleResolution": "node",
"target": "esnext",
"module": "esnext",
"module": "commonjs",
"sourceMap": true,
"types": ["node", "heft-jest"],
"declaration": true,
"outDir": "./lib",
"strict": true,

View File

@ -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",

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": {
"moduleResolution": "node",
"target": "esnext",
"module": "esnext",
"module": "commonjs",
"sourceMap": true,
"types": ["node", "heft-jest"],
"declaration": true,
"outDir": "./lib",
"strict": true,

View File

@ -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"
}
}

View File

@ -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",

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": {
"moduleResolution": "node",
"target": "esnext",
"module": "esnext",
"module": "commonjs",
"sourceMap": true,
"types": ["node", "heft-jest"],
"declaration": true,
"outDir": "./lib",
"strict": true,

View File

@ -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"
]
}

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": {
"moduleResolution": "node",
"target": "esnext",
"module": "esnext",
"module": "commonjs",
"sourceMap": true,
"types": ["node", "heft-jest"],
"declaration": true,
"outDir": "./lib",
"strict": true,