shopify-accelerate-app 1.0.46 → 1.0.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -267,8 +267,8 @@ export const generateLiquidFiles = (final?: boolean, cssOutput?: string) => {
|
|
|
267
267
|
}
|
|
268
268
|
};
|
|
269
269
|
|
|
270
|
-
const translationsJs = `<script
|
|
271
|
-
window.
|
|
270
|
+
const translationsJs = `<script>
|
|
271
|
+
window.__listify_translations = ${JSON.stringify(transformTranslations(translations), undefined, 2)};
|
|
272
272
|
</script>
|
|
273
273
|
`;
|
|
274
274
|
|
|
@@ -280,16 +280,14 @@ export const generateLiquidFiles = (final?: boolean, cssOutput?: string) => {
|
|
|
280
280
|
.replace(/\n\n/gi, "\n")};
|
|
281
281
|
declare global {
|
|
282
282
|
interface Window {
|
|
283
|
-
|
|
283
|
+
__listify_translations?: Translations;
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
286
|
`;
|
|
287
287
|
|
|
288
288
|
writeCompareFile(path.join(process.cwd(), extension_path, "locales", "en.default.json"), JSON.stringify(translations, undefined, 2));
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
translationsJs
|
|
292
|
-
);*/
|
|
289
|
+
writeCompareFile(path.join(process.cwd(), extension_path, "snippets", "translations.liquid"), translationsJs);
|
|
290
|
+
writeCompareFile(path.join(folders.snippets, "translations.liquid"), translationsJs);
|
|
293
291
|
writeCompareFile(path.join(folders.types, "translations.ts"), translationTypes);
|
|
294
292
|
|
|
295
293
|
const dynamicJsImports = [];
|