Skip to content

Commit 999415b

Browse files
committed
add tests for translation
1 parent 0903146 commit 999415b

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

test/doc-views/TR/Note/STMT.js

+10
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const customData = {
1010
...data.config,
1111
profile,
1212
isSTMT: true,
13+
needTranslation: true,
1314
},
1415
};
1516

@@ -30,4 +31,13 @@ export default {
3031
},
3132
},
3233
},
34+
translation: {
35+
notFound: {
36+
...good,
37+
config: {
38+
...good.config,
39+
needTranslation: false,
40+
},
41+
},
42+
},
3343
};

test/doc-views/TR/Recommendation/REC.js

+10
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ const customData = {
1616
hasLicensing: true,
1717
needImple: true,
1818
needErrata: true,
19+
needTranslation: true,
1920
},
2021
};
2122

@@ -177,4 +178,13 @@ export default {
177178
},
178179
},
179180
},
181+
translation: {
182+
notFound: {
183+
...good,
184+
config: {
185+
...good.config,
186+
needTranslation: false,
187+
},
188+
},
189+
},
180190
};

test/doc-views/layout/spec.handlebars

+4
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,10 @@
136136
</details>
137137
{{/if}}
138138

139+
{{#if config.needTranslation}}
140+
<p>See also <a href="https://www.w3.org/Translations/?technology="><strong>translations</strong></a>.</p>
141+
{{/if}}
142+
139143
{{#if copyright.show}}
140144
<p class="copyright">
141145
{{#if copyright.showDefault}}

0 commit comments

Comments
 (0)