Skip to content

Commit c02aa83

Browse files
committed
test(i18n): Fix basic i18n test.
1 parent c354996 commit c02aa83

File tree

1 file changed

+1
-1
lines changed
  • projects/igniteui-angular/src/lib/core/i18n/tests

1 file changed

+1
-1
lines changed

projects/igniteui-angular/src/lib/core/i18n/tests/tests.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class i18nTests {
1818
i18nFilesMatchForAllLanguages() {
1919
this.getDirectories(i18nLanguagesPath).forEach(dir => {
2020
const curDirPath = path.join(i18nLanguagesPath, dir);
21-
if (this.getFiles(curDirPath).length !== this.getFiles(i18nProductPath).length) {
21+
if (this.getFiles(curDirPath).length !== this.getFiles(i18nProductPath).filter(fileName => fileName.endsWith('resources.ts')).length) {
2222
errors.push(`Not all i18n component files that are available for localization have matching files for ${dir} language.
2323
Check and add the appropriate resource strings with EN translation and mark the PR as 'pending localization'`
2424
);

0 commit comments

Comments
 (0)