@shopify/react-i18n
Advanced tools
Comparing version 0.11.0 to 0.11.1
@@ -11,2 +11,18 @@ # Changelog | ||
## [0.11.1] - 2019-03-08 | ||
### Fixed | ||
- Reverted a change that caused `I18n#getCurrencySymbol` to sometimes return an empty string | ||
## [0.11.0] - 2019-03-07 | ||
### Added | ||
- Added an optional `onError` field to the options for `I18nManager`, which controls how descendant `I18n` objects will respond to some types of recoverable errors [#550](https://github.com/Shopify/quilt/pull/550) | ||
### Fixed | ||
- Fixed an issue where `I18n` instances would be created with two copies of each translation dictionary when the locale was equal to the fallback locale [#553](https://github.com/Shopify/quilt/pull/553) | ||
## [0.10.2] - 2019-02-13 | ||
@@ -13,0 +29,0 @@ |
@@ -42,3 +42,3 @@ /// <reference types="react" /> | ||
weekStartDay(argCountry?: I18n['defaultCountry']): Weekdays; | ||
getCurrencySymbol: (currencyCode?: string | undefined) => "" | { | ||
getCurrencySymbol: (currencyCode?: string | undefined) => { | ||
symbol: string; | ||
@@ -45,0 +45,0 @@ prefixed: boolean; |
@@ -21,4 +21,3 @@ "use strict"; | ||
if (currency == null) { | ||
_this.onError(new errors_1.MissingCurrencyCodeError("No currency code provided. formatCurrency cannot be called without a currency code.")); | ||
return ''; | ||
throw new errors_1.MissingCurrencyCodeError("No currency code provided. formatCurrency cannot be called without a currency code."); | ||
} | ||
@@ -25,0 +24,0 @@ return _this.getCurrencySymbolLocalized(_this.locale, currency); |
{ | ||
"name": "@shopify/react-i18n", | ||
"version": "0.11.0", | ||
"version": "0.11.1", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "i18n utilities for React handling translations, formatting, and more.", |
90500
1940