Skip to content

Instantly share code, notes, and snippets.

@broguinn
Created December 5, 2022 21:23
Show Gist options
  • Save broguinn/4c66eca72e12feaac0092e441b674539 to your computer and use it in GitHub Desktop.
Save broguinn/4c66eca72e12feaac0092e441b674539 to your computer and use it in GitHub Desktop.
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