Skip to content

Commit

Permalink
added it locale, added it entry (#2066)
Browse files Browse the repository at this point in the history
* added it locale, added it entry

* Apply suggestions from code review

Co-authored-by: Matteo Martellini <matteo@mercxry.me>

* add missing keys and a readme about the script

---------

Co-authored-by: Utku <74243531+utkubakir@users.noreply.github.com>
Co-authored-by: Matteo Martellini <matteo@mercxry.me>
  • Loading branch information
3 people committed Feb 26, 2024
1 parent 2832803 commit 6f27504
Show file tree
Hide file tree
Showing 5 changed files with 439 additions and 3 deletions.
3 changes: 2 additions & 1 deletion interface/app/$libraryId/settings/client/general.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ const LANGUAGE_OPTIONS = [
{ value: 'by', label: 'Беларуская' },
{ value: 'ru', label: 'Русский' },
{ value: 'zh-CN', label: '中文(简体)' },
{ value: 'zh-TW', label: '中文(繁體)' }
{ value: 'zh-TW', label: '中文(繁體)' },
{ value: 'it', label: "Italiano"}
];

// Sort the languages by their label
Expand Down
5 changes: 5 additions & 0 deletions interface/locales/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
This command will help you sync locales with the source language (en) and find missing keys.

`npx i18next-locales-sync -p en -s it -l ./interface/locales`

replace `it` with the language you want to sync with the source language.
2 changes: 1 addition & 1 deletion interface/locales/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@
"network_page_description": "Other Spacedrive nodes on your LAN will appear here, along with your default OS network mounts.",
"networking": "Networking",
"networking_port": "Networking Port",
"networking_port_description": "The port for Spacedrive's Peer-to-peer networking to communicate on. You should leave this disabled unless you have a restictive firewall. Do not expose to the internet!",
"networking_port_description": "The port for Spacedrive's Peer-to-peer networking to communicate on. You should leave this disabled unless you have a restrictive firewall. Do not expose to the internet!",
"new_folder": "New folder",
"new_library": "New library",
"new_location": "New location",
Expand Down
Loading

0 comments on commit 6f27504

Please sign in to comment.