From dca20abb9baa8b65735620c428615c5e396b91c1 Mon Sep 17 00:00:00 2001 From: Wendelin <12148533+wendevlin@users.noreply.github.com> Date: Tue, 29 Oct 2024 07:56:48 +0100 Subject: [PATCH] Update build-scripts/gulp/locale-data.js Co-authored-by: Paul Bottein --- build-scripts/gulp/locale-data.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-scripts/gulp/locale-data.js b/build-scripts/gulp/locale-data.js index add7e91f9687..4cf91711d495 100755 --- a/build-scripts/gulp/locale-data.js +++ b/build-scripts/gulp/locale-data.js @@ -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`),