Skip to content

Commit 7045a78

Browse files
alan-agius4Keen Yee Liau
authored and
Keen Yee Liau
committed
test: fix i18n extraction e2e test
The default `source-language` is `en-US` and not `en`.
1 parent 788875d commit 7045a78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/legacy-cli/e2e/tests/build/aot/aot-i18n.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export default async function () {
8282
// Extract the translation messages and copy them for each language.
8383
await ng('xi18n', '--output-path=src/locale');
8484
await expectFileToExist('src/locale/messages.xlf');
85-
await expectFileToMatch('src/locale/messages.xlf', `source-language="en"`);
85+
await expectFileToMatch('src/locale/messages.xlf', `source-language="en-US"`);
8686
await expectFileToMatch('src/locale/messages.xlf', `An introduction header for this sample`);
8787

8888
for (const { lang, translation } of langTranslations) {

0 commit comments

Comments
 (0)