Skip to content

Commit

Permalink
feat: add a new strings generator
Browse files Browse the repository at this point in the history
  • Loading branch information
vixalien committed Apr 2, 2024
1 parent 977b02d commit cc0cd8f
Show file tree
Hide file tree
Showing 5 changed files with 251 additions and 364 deletions.
6 changes: 6 additions & 0 deletions locales/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ localised.

## get.ts

```sh
deno run -A locales/get.ts
```

this file gets all languages & locations available from Youtube Music and writes
them to the file called `locales.json`.

Expand All @@ -16,5 +20,7 @@ This file is used to generate the `strings.json` file. This file contains the
required localised strings for the library to work. These strings are used when
parsing responses, to get for example "new albums", "new songs" etc.

1. Replace all instances of `REPLACE_WITH_YOUR_CHANNEL_ID` with your channel ID.

It's important that all the file does not log any missing strings, as this will
cause users of that language to miss some data.
2 changes: 1 addition & 1 deletion locales/strings.json

Large diffs are not rendered by default.

Loading

0 comments on commit cc0cd8f

Please sign in to comment.