vona-module-test-vona 5.0.74 → 5.0.75
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.
|
@@ -1714,7 +1714,7 @@ export declare const locales: {
|
|
|
1714
1714
|
UserId: string;
|
|
1715
1715
|
Test: string;
|
|
1716
1716
|
TestHelloWorld: string;
|
|
1717
|
-
|
|
1717
|
+
TestApples_: string;
|
|
1718
1718
|
TestApples_0: string;
|
|
1719
1719
|
TestApples_1: string;
|
|
1720
1720
|
TestNameApples_: string;
|
|
@@ -1733,7 +1733,7 @@ export declare const locales: {
|
|
|
1733
1733
|
UserId: string;
|
|
1734
1734
|
Test: string;
|
|
1735
1735
|
TestHelloWorld: string;
|
|
1736
|
-
|
|
1736
|
+
TestApples_: string;
|
|
1737
1737
|
TestApples_0: string;
|
|
1738
1738
|
TestNameApples_: string;
|
|
1739
1739
|
TestNameApples_0_1: string;
|
package/dist/index.js
CHANGED
|
@@ -3103,7 +3103,7 @@ var locale_en_us = {
|
|
|
3103
3103
|
UserId: 'User ID',
|
|
3104
3104
|
Test: 'Test',
|
|
3105
3105
|
TestHelloWorld: 'Hello World',
|
|
3106
|
-
|
|
3106
|
+
TestApples_: '%d apples',
|
|
3107
3107
|
TestApples_0: 'no apples',
|
|
3108
3108
|
TestApples_1: 'one apple',
|
|
3109
3109
|
TestNameApples_: '%s has %d apples',
|
|
@@ -3123,7 +3123,7 @@ var locale_zh_cn = {
|
|
|
3123
3123
|
UserId: '用户ID',
|
|
3124
3124
|
Test: '测试',
|
|
3125
3125
|
TestHelloWorld: '您好,世界',
|
|
3126
|
-
|
|
3126
|
+
TestApples_: '%d个苹果',
|
|
3127
3127
|
TestApples_0: '没有苹果',
|
|
3128
3128
|
TestNameApples_: '%s有%d个苹果',
|
|
3129
3129
|
TestNameApples_0_1: '%s没有苹果',
|
package/package.json
CHANGED
package/test/locale.test.ts
CHANGED
|
@@ -31,13 +31,13 @@ describe('locale.test.ts', () => {
|
|
|
31
31
|
// scope
|
|
32
32
|
const scopeTest = app.scope('test-vona');
|
|
33
33
|
// english
|
|
34
|
-
assert.equal(scopeTest.locale.
|
|
35
|
-
assert.equal(scopeTest.locale.
|
|
36
|
-
assert.equal(scopeTest.locale.
|
|
34
|
+
assert.equal(scopeTest.locale.TestApples_.locale('en-us', 0), 'no apples');
|
|
35
|
+
assert.equal(scopeTest.locale.TestApples_.locale('en-us', 1), 'one apple');
|
|
36
|
+
assert.equal(scopeTest.locale.TestApples_.locale('en-us', 2), '2 apples');
|
|
37
37
|
// chinese
|
|
38
|
-
assert.equal(scopeTest.locale.
|
|
39
|
-
assert.equal(scopeTest.locale.
|
|
40
|
-
assert.equal(scopeTest.locale.
|
|
38
|
+
assert.equal(scopeTest.locale.TestApples_.locale('zh-cn', 0), '没有苹果');
|
|
39
|
+
assert.equal(scopeTest.locale.TestApples_.locale('zh-cn', 1), '1个苹果');
|
|
40
|
+
assert.equal(scopeTest.locale.TestApples_.locale('zh-cn', 2), '2个苹果');
|
|
41
41
|
// english
|
|
42
42
|
assert.equal(scopeTest.locale.TestNameApples_.locale('en-us', 'Mike', 0), 'Mike has no apples');
|
|
43
43
|
assert.equal(scopeTest.locale.TestNameApples_.locale('en-us', 'Mike', 1), 'Mike has one apple');
|