@molecule/app-locales-ai-chat 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@molecule/app-locales-ai-chat",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
|
+
"description": "Translations for molecule AI chat components in 79 languages",
|
|
4
5
|
"homepage": "https://www.molecule.dev/packages/app-locales-ai-chat",
|
|
5
6
|
"license": "Apache-2.0",
|
|
6
7
|
"repository": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/index.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Locale-bond smoke tests — every language exposes every key with a
|
|
3
|
-
* non-empty string. Stub-language translations may equal the English
|
|
4
|
-
* string verbatim, but they must exist.
|
|
5
|
-
*
|
|
6
|
-
* @module
|
|
7
|
-
*/
|
|
8
|
-
import { describe, expect, it } from 'vitest';
|
|
9
|
-
import * as locales from '../index.js';
|
|
10
|
-
const REQUIRED_KEYS = [
|
|
11
|
-
'chat.error.httpError',
|
|
12
|
-
'chat.error.noResponseBody',
|
|
13
|
-
'chat.error.streamError',
|
|
14
|
-
'chat.error.unknownError',
|
|
15
|
-
];
|
|
16
|
-
const localeTables = Object.entries(locales).filter((entry) => entry[1] !== null && typeof entry[1] === 'object');
|
|
17
|
-
describe('ai-chat locale bond', () => {
|
|
18
|
-
it('exports at least 79 language tables (en + 78 stubs)', () => {
|
|
19
|
-
expect(localeTables.length).toBeGreaterThanOrEqual(79);
|
|
20
|
-
});
|
|
21
|
-
it.each(localeTables)('locale "%s" supplies every required key', (_code, table) => {
|
|
22
|
-
for (const key of REQUIRED_KEYS) {
|
|
23
|
-
expect(typeof table[key]).toBe('string');
|
|
24
|
-
expect(table[key].length).toBeGreaterThan(0);
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
});
|
|
28
|
-
//# sourceMappingURL=index.test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.test.js","sourceRoot":"","sources":["../../src/__tests__/index.test.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAA;AAE7C,OAAO,KAAK,OAAO,MAAM,aAAa,CAAA;AAGtC,MAAM,aAAa,GAAyB;IAC1C,sBAAsB;IACtB,2BAA2B;IAC3B,wBAAwB;IACxB,yBAAyB;CAC1B,CAAA;AAED,MAAM,YAAY,GAAG,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,CACjD,CAAC,KAAK,EAAuC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,IAAI,IAAI,OAAO,KAAK,CAAC,CAAC,CAAC,KAAK,QAAQ,CAClG,CAAA;AAED,QAAQ,CAAC,qBAAqB,EAAE,GAAG,EAAE;IACnC,EAAE,CAAC,qDAAqD,EAAE,GAAG,EAAE;QAC7D,MAAM,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,sBAAsB,CAAC,EAAE,CAAC,CAAA;IACxD,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,yCAAyC,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE;QAChF,KAAK,MAAM,GAAG,IAAI,aAAa,EAAE,CAAC;YAChC,MAAM,CAAC,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;YACxC,MAAM,CAAE,KAAK,CAAC,GAAG,CAAY,CAAC,MAAM,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,CAAA;QAC1D,CAAC;IACH,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
|