Skip to content

Commit

Permalink
docs: add links to translater demo
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiscoding committed Jul 11, 2024
1 parent 49523d1 commit 90fe8bb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/localization/localization-translate-service.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

### Installation

You can create your own Translate Service, for example installing the `whatwg-fetch` library to load JSON files for translations.
You can create your own Translate Service, for example installing the `whatwg-fetch` library (or anything similar) to load JSON files for translations.

##### Install NPM package

Expand All @@ -15,6 +15,8 @@ npm install whatwg-fetch

You must make sure to implement all functions of the `TranslaterService` interface.

> for a full implementation demo with `whatwg-fetch`, take a look at [translate.service.ts](https://github.com/ghiscoding/slickgrid-universal/blob/master/examples/vite-demo-vanilla-bundle/src/translate.service.ts).
```ts
export class TranslateService implements TranslaterService {
/** Method to return the current language used by the App */
Expand Down

0 comments on commit 90fe8bb

Please sign in to comment.