Created
December 5, 2022 21:23
-
-
Save broguinn/4c66eca72e12feaac0092e441b674539 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/client/rollup.config.mjs b/client/rollup.config.mjs | |
index c4fa3c1e6..5fa8d9b99 100644 | |
--- a/client/rollup.config.mjs | |
+++ b/client/rollup.config.mjs | |
@@ -32,7 +32,7 @@ import { | |
getWorkspaceAssetEntrypoints, | |
} from '@reddit/shreddit.lib.orchestrator/workspaces.js'; | |
-const DEFAULT_LOCALE = 'en-US'; | |
+const DEFAULT_LOCALE = ['en-US', 'es-ES']; | |
const INDEX_FILE_RE = /^index\./; | |
const workspaces = getWorkspaces(); | |
@@ -46,7 +46,7 @@ const locales = localeTransformers('../i18n/lit-localize-collect.json').filter(( | |
if (process.env.NODE_ENV === 'production') { | |
return transformer; | |
} | |
- if (transformer.locale === DEFAULT_LOCALE) { | |
+ if (transformer.locale in DEFAULT_LOCALE) { | |
return transformer; | |
} | |
}); | |
@@ -123,7 +123,7 @@ const localizedBundles = locales.map(({ locale, localeTransformer }) => { | |
); | |
} | |
- if (locale === DEFAULT_LOCALE) { | |
+ if (locale in DEFAULT_LOCALE) { | |
config.plugins.push( | |
perfbot.dependencyTree({ | |
outputDir: path.resolve(outputDir), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment