mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-22 11:42:30 +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": {
|
"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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
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": {
|
"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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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`)
|
||||||
|
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/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",
|
||||||
|
@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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",
|
||||||
|
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": {
|
"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,
|
||||||
|
@ -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",
|
||||||
|
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": {
|
"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,
|
||||||
|
@ -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",
|
||||||
|
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": {
|
"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,
|
||||||
|
@ -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",
|
||||||
|
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": {
|
"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,
|
||||||
|
@ -31,6 +31,8 @@
|
|||||||
"CreateReminder": "Создать напоминание",
|
"CreateReminder": "Создать напоминание",
|
||||||
"CreatedReminder": "Создал напоминание",
|
"CreatedReminder": "Создал напоминание",
|
||||||
"Reminders": "Напоминания",
|
"Reminders": "Напоминания",
|
||||||
|
"Shift": "Сдвиг",
|
||||||
|
"State": "Состояние",
|
||||||
"NoReminders": "Нет напоминаний",
|
"NoReminders": "Нет напоминаний",
|
||||||
"AllDay": "Весь день",
|
"AllDay": "Весь день",
|
||||||
"AndMore": "И еще {count}",
|
"AndMore": "И еще {count}",
|
||||||
|
@ -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",
|
||||||
|
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": {
|
"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,
|
||||||
|
@ -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": "Новое",
|
||||||
|
@ -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",
|
||||||
|
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": {
|
"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,
|
||||||
|
@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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",
|
||||||
|
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": {
|
"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,
|
||||||
|
@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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",
|
||||||
|
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": {
|
"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,
|
||||||
|
@ -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"
|
||||||
|
@ -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",
|
||||||
|
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": {
|
"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,
|
||||||
|
@ -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",
|
||||||
|
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": {
|
"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,
|
||||||
|
@ -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",
|
||||||
|
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": {
|
"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,
|
||||||
|
@ -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",
|
||||||
|
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": {
|
"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,
|
||||||
|
@ -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",
|
||||||
|
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": {
|
"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,
|
||||||
|
@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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",
|
||||||
|
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": {
|
"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,
|
||||||
|
@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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",
|
||||||
|
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": {
|
"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,
|
||||||
|
@ -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",
|
||||||
|
@ -35,6 +35,9 @@
|
|||||||
"DeleteAttribute": "Удалить атрибут",
|
"DeleteAttribute": "Удалить атрибут",
|
||||||
"DeleteAttributeConfirm": "Вы действительно хотите удалить этот атрибут?",
|
"DeleteAttributeConfirm": "Вы действительно хотите удалить этот атрибут?",
|
||||||
"DeleteAttributeExistConfirm": "Вы действительно хотите удалить этот атрибут? Данные будут утеряны",
|
"DeleteAttributeExistConfirm": "Вы действительно хотите удалить этот атрибут? Данные будут утеряны",
|
||||||
|
"DeleteMixin": "Удалить Миксин",
|
||||||
|
"DeleteMixinConfirm": "Вы действительно хотите удалить этот Миксин?",
|
||||||
|
"DeleteMixinExistConfirm": "Вы действительно хотите удалить этот Миксин? Данные будут утеряны",
|
||||||
"Attribute": "Атрибут",
|
"Attribute": "Атрибут",
|
||||||
"Custom": "Пользовательский",
|
"Custom": "Пользовательский",
|
||||||
"Type": "Тип",
|
"Type": "Тип",
|
||||||
|
@ -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",
|
||||||
|
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": {
|
"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,
|
||||||
|
@ -30,6 +30,7 @@
|
|||||||
"CategoryTagsLabel": "Теги категории",
|
"CategoryTagsLabel": "Теги категории",
|
||||||
"OtherCategoryLabel": "Другое",
|
"OtherCategoryLabel": "Другое",
|
||||||
"AllCategories": "Все категории",
|
"AllCategories": "Все категории",
|
||||||
|
"DefaultLabel": "Категория по умолчанию",
|
||||||
"SelectAll": "Выбрать все",
|
"SelectAll": "Выбрать все",
|
||||||
"SelectNone": "Выбрать ничего",
|
"SelectNone": "Выбрать ничего",
|
||||||
"ApplyTags": "Применить"
|
"ApplyTags": "Применить"
|
||||||
|
@ -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",
|
||||||
|
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": {
|
"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,
|
||||||
|
@ -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",
|
||||||
|
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": {
|
"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,
|
||||||
|
@ -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",
|
||||||
|
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": {
|
"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,
|
||||||
|
@ -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",
|
||||||
|
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": {
|
"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,
|
||||||
|
@ -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",
|
||||||
|
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": {
|
"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,
|
||||||
|
@ -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",
|
||||||
|
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": {
|
"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,
|
||||||
|
@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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",
|
||||||
|
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": {
|
"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,
|
||||||
|
@ -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"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
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": {
|
"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,
|
||||||
|
Loading…
Reference in New Issue
Block a user