Skip to content

Commit

Permalink
Update build-scripts/gulp/locale-data.js
Browse files Browse the repository at this point in the history
Co-authored-by: Paul Bottein <[email protected]>
  • Loading branch information
wendevlin and piitaya authored Oct 29, 2024
1 parent 0753977 commit dca20ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build-scripts/gulp/locale-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const convertToJSON = async (
let localeData;
try {
// use "pt" for "pt-BR", because "pt-BR" is unsupported by @formatjs
const language = lang !== "pt-BR" ? lang : "pt";
const language = lang === "pt-BR" ? "pt" : lang;

localeData = await readFile(
join(formatjsDir, pkg, subDir, `${language}.js`),
Expand Down

0 comments on commit dca20ab

Please sign in to comment.