Skip to content
This repository has been archived by the owner on Aug 14, 2024. It is now read-only.

Commit

Permalink
chore: remove cli & ui translations (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreDemailly authored Mar 16, 2024
1 parent 28534d1 commit 466e660
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 944 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ import * as i18n from "@nodesecure/i18n";

await i18n.setLocalLang("french");

console.log(i18n.getToken("cli.executing_at"));
console.log(i18n.getToken("depWalker.dep_tree"));

// Using parameters
console.log(i18n.getToken("cli.min_nodejs_version", "14"));
console.log(i18n.getToken("depWalker.success_tarball", "14", "15ms"));
```

You can consult the real use case of the API in the following codes: [here](https://github.com/NodeSecure/cli/blob/master/src/commands/lang.js) and [here](https://github.com/NodeSecure/cli/blob/master/src/commands/vulnerability.js).
Expand Down
Loading

0 comments on commit 466e660

Please sign in to comment.