Skip to content

Commit

Permalink
Fix region langs not generating the correct values folder.
Browse files Browse the repository at this point in the history
  • Loading branch information
asier2 authored and Airsaid committed Nov 5, 2024
1 parent 364e287 commit 2d9e35a
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,12 @@ public File getValueFile(@NotNull VirtualFile resourceDir, @NotNull Lang lang, S
}

private String getValuesDirectoryName(@NotNull Lang lang) {
return "values-".concat(lang.getCode());
String[] parts = lang.getCode().split("-");
if (parts.length > 1) {
return "values-".concat(parts[0] + "-" + "r" + parts[1].toUpperCase());
} else {
return "values-".concat(lang.getCode());
}
}

/**
Expand Down

0 comments on commit 2d9e35a

Please sign in to comment.