Skip to content

Commit ab0d601

Browse files
committed
fix: use the locale name as-is
1 parent d674d56 commit ab0d601

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/scripts/generate-locale-matrix.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,8 @@ function processAutoTrigger(localeConfig, changesJson) {
205205
// Check each locale dynamically from config
206206
for (const locale of Object.keys(localeConfig)) {
207207
if (isLocaleEnabled(localeConfig, locale)) {
208-
const localeKey = locale.replace('-', '_'); // Convert locale key for changes JSON
208+
// For changes JSON, use the locale name as-is (no conversion needed)
209+
const localeKey = locale; // Keep original locale name for changes JSON key
209210
const localeChanged = changesJson[`${localeKey}_any_changed`] === 'true';
210211

211212
if (coreChanged || localeChanged) {

0 commit comments

Comments
 (0)