Skip to content

Commit

Permalink
Use lowercased names for generated locale directories (#19581)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy authored and mhegazy committed Oct 31, 2017
1 parent 0f32f55 commit 6bc04a9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts/generateLocalizedDiagnosticMessages.ts
Expand Up @@ -65,10 +65,11 @@ function main(): void {
* There are three exceptions, zh-CN, zh-TW and pt-BR.
*/
function getPreferedLocaleName(localeName: string) {
localeName = localeName.toLowerCase();
switch (localeName) {
case "zh-CN":
case "zh-TW":
case "pt-BR":
case "zh-cn":
case "zh-tw":
case "pt-br":
return localeName;
default:
return localeName.split("-")[0];
Expand Down

0 comments on commit 6bc04a9

Please sign in to comment.