Skip to content

Commit 05cef47

Browse files
committed
chore: update locales README
1 parent 59da3d9 commit 05cef47

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/main/services/i18n/locales/README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,16 @@
33
## Add new Locales
44
- Make a duplicate of the `en` folder, then rename it to the necessary [two-letter locale code](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes).
55
- Translate each value in each of the files.
6+
- Add new [option](https://github.com/massCodeIO/massCode/blob/master/src/renderer/components/preferences/LanguagePreferences.vue#L42) for language selector where the name of the language corresponds to the name of the folder
7+
8+
```js
9+
...
10+
// 'en' for label & value
11+
{
12+
label: i18n.t('preferences:language.en'),
13+
value: 'en'
14+
}
15+
...
16+
```
17+
618
- Make PR.

0 commit comments

Comments
 (0)