We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4f180c commit 3a8296aCopy full SHA for 3a8296a
scripts/update_from_crowdin.mts
@@ -114,7 +114,9 @@ async function copyFiles() {
114
if (dirEntry.isFile) {
115
const crowdinFileName = dirEntry.name;
116
const localeMatch = crowdinFileName.match(localeRegex);
117
- if (localeMatch == null) continue;
+ if (localeMatch == null) {
118
+ throw new Error(`Could not extract locale from file name: ${crowdinFileName}`);
119
+ }
120
121
const localeCodeInCrowdinFile = localeMatch[1];
122
const localeCodeWithHyphens = localeCodeInCrowdinFile.replaceAll("_", "-");
0 commit comments