shopify-accelerate-app 1.0.50 → 1.0.51

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shopify-accelerate-app",
3
- "version": "1.0.50",
3
+ "version": "1.0.51",
4
4
  "description": "Shopify App development with full Typescript Support",
5
5
  "author": "Felix Tellmann",
6
6
  "license": "MIT",
@@ -86,6 +86,7 @@ export type GlobalsState = {
86
86
  blocks: string;
87
87
  snippets: string;
88
88
  assets: string;
89
+ locales: string;
89
90
  };
90
91
  };
91
92
 
@@ -133,6 +134,9 @@ export const config: GlobalsState = {
133
134
  assets: process.env.SHOPIFY_ACCELERATE_ASSETS
134
135
  ? path.join(process.cwd(), process.env.SHOPIFY_ACCELERATE_ASSETS)
135
136
  : path.join(root_dir, "assets"),
137
+ locales: process.env.SHOPIFY_ACCELERATE_LOCALES
138
+ ? path.join(process.cwd(), process.env.SHOPIFY_ACCELERATE_LOCALES)
139
+ : path.join(root_dir, "locales"),
136
140
  },
137
141
  extension_path: process.env.SHOPIFY_ACCELERATE_EXTENSION_PATH ?? "./extensions/theme-extension",
138
142
  theme_output_path: process.env.SHOPIFY_ACCELERATE_THEME_OUTPUT_PATH ?? "/themes/development",
@@ -288,7 +288,7 @@ export const generateLiquidFiles = (final?: boolean, cssOutput?: string) => {
288
288
  }
289
289
 
290
290
  const defaultSourceTranslations = JSON.parse(
291
- fs.readFileSync(path.join(config.extension_path, `locales/en.default.json`), {
291
+ fs.readFileSync(path.join(folders.locales, `en.default.json`), {
292
292
  encoding: "utf-8",
293
293
  }) ?? "{}"
294
294
  );