@shopify/react-i18n
Advanced tools
Comparing version 0.11.8 to 0.11.9
@@ -11,2 +11,8 @@ # Changelog | ||
## [0.11.9] - 2019-03-29 | ||
### Fixed | ||
- Fixed an issue where the Babel plugin would return `Module` objects instead of the actual translation dictionaries [#618](https://github.com/Shopify/quilt/pull/618) | ||
## [0.11.7] - 2019-03-27 | ||
@@ -13,0 +19,0 @@ |
@@ -17,3 +17,3 @@ "use strict"; | ||
var id = _a.id, fallbackID = _a.fallbackID, decoratorName = _a.decoratorName; | ||
return template(decoratorName + "({\n id: '" + id + "',\n fallback: " + fallbackID + ",\n async translations(locale) {\n return await import(/* webpackChunkName: \"" + id + "-i18n\", webpackMode: \"lazy-once\" */ `./translations/${locale}.json`);\n },\n })", { | ||
return template(decoratorName + "({\n id: '" + id + "',\n fallback: " + fallbackID + ",\n async translations(locale) {\n const dictionary = await import(/* webpackChunkName: \"" + id + "-i18n\", webpackMode: \"lazy-once\" */ `./translations/${locale}.json`);\n return dictionary && dictionary.default;\n },\n })", { | ||
sourceType: 'module', | ||
@@ -20,0 +20,0 @@ plugins: ['dynamicImport'], |
{ | ||
"name": "@shopify/react-i18n", | ||
"version": "0.11.8", | ||
"version": "0.11.9", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "i18n utilities for React handling translations, formatting, and more.", |
92695
1967