We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 613a933 commit 484ad23Copy full SHA for 484ad23
1 file changed
README.md
@@ -52,8 +52,8 @@ English is defined as the default language so calling `.i18n()` without argument
52
53
```js
54
errors.get('orders:client:cartTripNotFound').i18n(); // => string
55
-errors.get('orders:client:cartTripNotFound').i18n('fr_FR'); // => string
56
-errors.get('orders:client:cartTripNotFound').i18n('en_US'); // => string
+errors.get('orders:client:cartTripNotFound').i18n('fr'); // => string
+errors.get('orders:client:cartTripNotFound').i18n('en'); // => string
57
errors.get('orders:client:cartTripNotFound').i18n('Not-A-Language'); // => throws an error
58
```
59
0 commit comments