Skip to content

Commit

Permalink
chore: update translations
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Mar 10, 2023
1 parent bd30523 commit 779baf1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dl-librescore",
"version": "0.34.41",
"version": "0.34.42",
"description": "Download sheet music",
"main": "dist/main.user.js",
"bin": "dist/cli.js",
Expand Down
3 changes: 3 additions & 0 deletions src/i18n/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import ms from "./ms.json";
import nl from "./nl.json";
import ru from "./ru.json";
import zh_Hans from "./zh-Hans.json";
import zh_Hant from "./zh_Hant.json";

function getLocale(): string {
let languageMap = [
Expand All @@ -30,6 +31,7 @@ function getLocale(): string {
"nl",
"ru",
"zh-Hans",
"zh_Hant",
];

let locale: string = "en";
Expand Down Expand Up @@ -105,6 +107,7 @@ export default i18n.init({
nl: { translation: nl },
ru: { translation: ru },
"zh-Hans": { translation: zh_Hans },
zh_Hant: { translation: zh_Hant },
},
interpolation: {
// Fix output path `path/to/file` being displayed as `path/to/file` in cli (verbose mode)
Expand Down

0 comments on commit 779baf1

Please sign in to comment.