Skip to content

Commit

Permalink
integration with travis
Browse files Browse the repository at this point in the history
  • Loading branch information
WojciechCendrzak committed May 27, 2021
1 parent 0ca99f1 commit d6989db
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 17 deletions.
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
language: node_js
node_js:
- stable
install:
- yarn
script:
- yarn test
- yarn coveralls
20 changes: 3 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ you can access translation key in that way:
i18next.t(translationKeys.homePage.header.buttons.signIn.title);
```

The only thing you need to to is to initialize `translationKeys` object as one liner:
The only thing you need to do is to initialize `translationKeys` object like:

```ts
import en from './en.json'; // or `./en.ts`
Expand All @@ -36,26 +36,12 @@ i18next.init({
const translationKeys = getTranslationKeys(en);
```

You can enjoy the benefits of `TypeScript` as well as **IntelliSense** and `linting`.
You can enjoy the benefits of `TypeScript` as well as `IntelliSense` of your IDE and `linting`.

Then you can use like this:

```ts
const text = i18next.t(translationKeys.homePage.header.buttons.signIn.title);
```

TODO:

package.json

- replace tsc with typescript
- fix coverall
- update script build, lint
- remove script tsc
- tsconfig.json - is it needed?

readme

- add badges

- add pluralization support
Check the examples!
14 changes: 14 additions & 0 deletions todo.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
TODO:

package.json

- replace tsc with typescript
- fix coverall
- update script build, lint
- remove script tsc

readme

- add badges

- add pluralization support

0 comments on commit d6989db

Please sign in to comment.