Skip to content
This repository has been archived by the owner on Jun 16, 2022. It is now read-only.

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
devconcept committed Jul 24, 2018
1 parent c4ac7bf commit ad72e8b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/guide-package/guide/internationalization.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ Running this command would yield a file like this
Using different words or a non-English initial language is possible too with this technique. This example uses French as the default language for your translators.

```html
<add-to-cart buttonText="Add to cart" i18n-buttonText></add-to-cart>
<add-to-cart buttonText="Ajouter au panier" i18n-buttonText></add-to-cart>
```

After you translate all text nodes and merge the translation file your app will display the target language of your choice and all the library components will update too to display text using that language.
After you translated all text nodes and merged the translation file following the steps provided in the [internationalization guide](https://angular.io/guide/i18n) your app will display the target language of your choice and all the library components will update too to display text using that language.



Expand Down
2 changes: 1 addition & 1 deletion src/components/cart-checkout/cart-checkout.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export class CartCheckoutComponent implements OnChanges, OnInit, OnDestroy {
if (currencyCode.length === 3) {
return currencyCode;
}
// Angular <= 6 return "US Dollar" instead of "USD" so we have to hack the code using the currency pipe
// Angular < 6 return "US Dollar" instead of "USD" so we have to hack the code using the currency pipe
// You will also get USD on locales where you should get EUR so for those versions currencyCode must be used
const fmt = new CurrencyPipe(locale);
const val = fmt.transform(0, undefined, 'code', '1.0-0', locale);
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/cart-change-event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/
export interface CartChangeEvent {
/**
* The cart element where the change took place
* The location where the change took place
*/
change: 'items' | 'taxRate' | 'shipping' | 'format';
/**
Expand Down

0 comments on commit ad72e8b

Please sign in to comment.