Skip to content

Commit 484ad23

Browse files
authored
docs(README.md): example fixed
1 parent 613a933 commit 484ad23

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ English is defined as the default language so calling `.i18n()` without argument
5252

5353
```js
5454
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
55+
errors.get('orders:client:cartTripNotFound').i18n('fr'); // => string
56+
errors.get('orders:client:cartTripNotFound').i18n('en'); // => string
5757
errors.get('orders:client:cartTripNotFound').i18n('Not-A-Language'); // => throws an error
5858
```
5959

0 commit comments

Comments
 (0)