summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorOskar <oskar@mullvad.net>2024-11-04 07:54:37 +0100
committerOskar <oskar@mullvad.net>2024-11-14 16:43:38 +0100
commitd2276df2dacd46a43df9bf5c631f1a8bd5ce8a0c (patch)
tree0a30b5a59aedca872817f648306844d4d94853c4
parentd7c1f569a8e37a642605358fccb87f2f0257dc13 (diff)
downloadmullvadvpn-d2276df2dacd46a43df9bf5c631f1a8bd5ce8a0c.tar.xz
mullvadvpn-d2276df2dacd46a43df9bf5c631f1a8bd5ce8a0c.zip
Update localization script
-rw-r--r--desktop/packages/mullvad-vpn/scripts/verify-translations-format.ts2
-rwxr-xr-xscripts/localization12
2 files changed, 7 insertions, 7 deletions
diff --git a/desktop/packages/mullvad-vpn/scripts/verify-translations-format.ts b/desktop/packages/mullvad-vpn/scripts/verify-translations-format.ts
index 05ffb3e504..ad3c027ac9 100644
--- a/desktop/packages/mullvad-vpn/scripts/verify-translations-format.ts
+++ b/desktop/packages/mullvad-vpn/scripts/verify-translations-format.ts
@@ -2,7 +2,7 @@ import fs from 'fs';
import { GetTextTranslation, po } from 'gettext-parser';
import path from 'path';
-const LOCALES_DIR = path.join('..', 'locales');
+const LOCALES_DIR = path.join('locales');
const ALLOWED_TAGS = ['b', 'br'];
const ALLOWED_VOID_TAGS = ['br'];
diff --git a/scripts/localization b/scripts/localization
index 2fdc011db8..084f61661c 100755
--- a/scripts/localization
+++ b/scripts/localization
@@ -28,7 +28,7 @@ function main {
function sync_localizations {
# Update desktop strings in messages.pot
log_header "Extracting localization strings from desktop app source code"
- pushd ../gui
+ pushd ../desktop/packages/mullvad-vpn
npm run update-translations
popd
@@ -41,7 +41,7 @@ function sync_localizations {
function update_relay_locations_pot {
log_header "Retrieving relay locations from server list and translating by using map data"
- pushd ../gui/scripts
+ pushd ../desktop/packages/mullvad-vpn/scripts
# Add translations from geo data
python3 fetch-relay-locations.py
@@ -73,7 +73,7 @@ function upload_to_crowdin {
log_header "Uploading translations to crowdin"
- pushd ../gui
+ pushd ../desktop/packages/mullvad-vpn
crowdin upload sources
crowdin upload translations
popd
@@ -83,7 +83,7 @@ function download_from_crowdin {
ensure_crowdin_api_key
log_header "Downloading translations from crowdin"
- pushd ../gui
+ pushd ../desktop/packages/mullvad-vpn
crowdin download
popd
@@ -101,8 +101,8 @@ function verify {
! git status -s | grep .
local out_of_sync=$?
- pushd ../gui/scripts
- npm exec ts-node verify-translations-format.ts
+ pushd ../desktop/packages/mullvad-vpn
+ npm exec ts-node scripts/verify-translations-format.ts
local incorrect_format=$?
popd