|
1 | 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP
|
2 | 2 |
|
3 | 3 | exports[`process (default.vue) returns expected string: default.vue 1`] = `
|
4 |
| -"__vue__options__.__i18n = [ |
5 |
| -'{\\"ja\\":{\\"hello\\":\\"こんにちは!\\"},\\"en\\":{\\"hello\\":\\"hello!\\"}}' |
6 |
| -]" |
| 4 | +Array [ |
| 5 | + "Component.__i18n = Component.__i18n || [];", |
| 6 | + "Component.__i18n.push({\\"locale\\":\\"\\",\\"resource\\":{\\"ja\\":{\\"hello\\":\\"こんにちは!\\"},\\"en\\":{\\"hello\\":\\"hello!\\"}}});", |
| 7 | +] |
7 | 8 | `;
|
8 | 9 |
|
9 | 10 | exports[`process (json.vue) returns expected string: json.vue 1`] = `
|
10 |
| -"__vue__options__.__i18n = [ |
11 |
| -'{\\"ja\\":{\\"hello\\":\\"こんにちは!\\"},\\"en\\":{\\"hello\\":\\"hello!\\"}}' |
12 |
| -]" |
| 11 | +Array [ |
| 12 | + "Component.__i18n = Component.__i18n || [];", |
| 13 | + "Component.__i18n.push({\\"locale\\":\\"\\",\\"resource\\":{\\"ja\\":{\\"hello\\":\\"こんにちは!\\"},\\"en\\":{\\"hello\\":\\"hello!\\"}}});", |
| 14 | +] |
13 | 15 | `;
|
14 | 16 |
|
15 | 17 | exports[`process (json-locale.vue) returns expected string: json-locale.vue 1`] = `
|
16 |
| -"__vue__options__.__i18n = [ |
17 |
| -'{\\"ja\\":{\\"hello\\":\\"こんにちは!\\"}}', |
18 |
| -'{\\"en\\":{\\"hello\\":\\"hello!\\"}}' |
19 |
| -]" |
| 18 | +Array [ |
| 19 | + "Component.__i18n = Component.__i18n || [];", |
| 20 | + "Component.__i18n.push({\\"locale\\":\\"ja\\",\\"resource\\":{\\"hello\\":\\"こんにちは!\\"}});", |
| 21 | + "Component.__i18n.push({\\"locale\\":\\"en\\",\\"resource\\":{\\"hello\\":\\"hello!\\"}});", |
| 22 | +] |
20 | 23 | `;
|
21 | 24 |
|
22 | 25 | exports[`process (json-src-import.vue) returns expected string: json-src-import.vue 1`] = `
|
23 |
| -"__vue__options__.__i18n = [ |
24 |
| -'{\\"ja\\":{\\"hello\\":\\"こんにちは!\\"},\\"en\\":{\\"hello\\":\\"hello!\\"}}' |
25 |
| -]" |
| 26 | +Array [ |
| 27 | + "Component.__i18n = Component.__i18n || [];", |
| 28 | + "Component.__i18n.push({\\"locale\\":\\"\\",\\"resource\\":{\\"ja\\":{\\"hello\\":\\"こんにちは!\\"},\\"en\\":{\\"hello\\":\\"hello!\\"}}});", |
| 29 | +] |
26 | 30 | `;
|
27 | 31 |
|
28 | 32 | exports[`process (json5.vue) returns expected string: json5.vue 1`] = `
|
29 |
| -"__vue__options__.__i18n = [ |
30 |
| -'{\\"ja\\":{\\"hello\\":\\"こんにちは!\\"},\\"en\\":{\\"hello\\":\\"hello!\\"}}' |
31 |
| -]" |
| 33 | +Array [ |
| 34 | + "Component.__i18n = Component.__i18n || [];", |
| 35 | + "Component.__i18n.push({\\"locale\\":\\"\\",\\"resource\\":{\\"ja\\":{\\"hello\\":\\"こんにちは!\\"},\\"en\\":{\\"hello\\":\\"hello!\\"}}});", |
| 36 | +] |
32 | 37 | `;
|
33 | 38 |
|
34 | 39 | exports[`process (json5-locale.vue) returns expected string: json5-locale.vue 1`] = `
|
35 |
| -"__vue__options__.__i18n = [ |
36 |
| -'{\\"ja\\":{\\"hello\\":\\"こんにちは!\\"}}', |
37 |
| -'{\\"en\\":{\\"hello\\":\\"hello!\\"}}' |
38 |
| -]" |
| 40 | +Array [ |
| 41 | + "Component.__i18n = Component.__i18n || [];", |
| 42 | + "Component.__i18n.push({\\"locale\\":\\"ja\\",\\"resource\\":{\\"hello\\":\\"こんにちは!\\"}});", |
| 43 | + "Component.__i18n.push({\\"locale\\":\\"en\\",\\"resource\\":{\\"hello\\":\\"hello!\\"}});", |
| 44 | +] |
39 | 45 | `;
|
40 | 46 |
|
41 | 47 | exports[`process (json5-src-import.vue) returns expected string: json5-src-import.vue 1`] = `
|
42 |
| -"__vue__options__.__i18n = [ |
43 |
| -'{\\"ja\\":{\\"hello\\":\\"こんにちは!\\"},\\"en\\":{\\"hello\\":\\"hello!\\"}}' |
44 |
| -]" |
| 48 | +Array [ |
| 49 | + "Component.__i18n = Component.__i18n || [];", |
| 50 | + "Component.__i18n.push({\\"locale\\":\\"\\",\\"resource\\":{\\"ja\\":{\\"hello\\":\\"こんにちは!\\"},\\"en\\":{\\"hello\\":\\"hello!\\"}}});", |
| 51 | +] |
45 | 52 | `;
|
46 | 53 |
|
47 |
| -exports[`process (no-i18n.vue) returns expected string: no-i18n.vue 1`] = `""`; |
| 54 | +exports[`process (no-i18n.vue) returns expected string: no-i18n.vue 1`] = `Array []`; |
48 | 55 |
|
49 | 56 | exports[`process (yaml.vue) returns expected string: yaml.vue 1`] = `
|
50 |
| -"__vue__options__.__i18n = [ |
51 |
| -'{\\"ja\\":{\\"hello\\":\\"こんにちは!\\"},\\"en\\":{\\"hello\\":\\"hello!\\"}}' |
52 |
| -]" |
| 57 | +Array [ |
| 58 | + "Component.__i18n = Component.__i18n || [];", |
| 59 | + "Component.__i18n.push({\\"locale\\":\\"\\",\\"resource\\":{\\"ja\\":{\\"hello\\":\\"こんにちは!\\"},\\"en\\":{\\"hello\\":\\"hello!\\"}}});", |
| 60 | +] |
53 | 61 | `;
|
54 | 62 |
|
55 | 63 | exports[`process (yaml-locale.vue) returns expected string: yaml-locale.vue 1`] = `
|
56 |
| -"__vue__options__.__i18n = [ |
57 |
| -'{\\"ja\\":{\\"hello\\":\\"こんにちは!\\"}}', |
58 |
| -'{\\"en\\":{\\"hello\\":\\"hello!\\"}}' |
59 |
| -]" |
| 64 | +Array [ |
| 65 | + "Component.__i18n = Component.__i18n || [];", |
| 66 | + "Component.__i18n.push({\\"locale\\":\\"ja\\",\\"resource\\":{\\"hello\\":\\"こんにちは!\\"}});", |
| 67 | + "Component.__i18n.push({\\"locale\\":\\"en\\",\\"resource\\":{\\"hello\\":\\"hello!\\"}});", |
| 68 | +] |
60 | 69 | `;
|
61 | 70 |
|
62 | 71 | exports[`process (yaml-src-import.vue) returns expected string: yaml-src-import.vue 1`] = `
|
63 |
| -"__vue__options__.__i18n = [ |
64 |
| -'{\\"ja\\":{\\"hello\\":\\"こんにちは!\\"},\\"en\\":{\\"hello\\":\\"hello!\\"}}' |
65 |
| -]" |
| 72 | +Array [ |
| 73 | + "Component.__i18n = Component.__i18n || [];", |
| 74 | + "Component.__i18n.push({\\"locale\\":\\"\\",\\"resource\\":{\\"ja\\":{\\"hello\\":\\"こんにちは!\\"},\\"en\\":{\\"hello\\":\\"hello!\\"}}});", |
| 75 | +] |
66 | 76 | `;
|
0 commit comments