Fix electron translations (#4317)

* fix electron translations
This commit is contained in:
Michael Clark
2025-02-06 18:16:17 +00:00
committed by Matt Fiddaman
parent dd58376aa9
commit fd42689f00
3 changed files with 20 additions and 0 deletions

View File

@@ -36,6 +36,16 @@ fi
yarn workspace loot-core build:node
# Get translations
echo "Updating translations..."
if ! [ -d packages/desktop-client/locale ]; then
git clone https://github.com/actualbudget/translations packages/desktop-client/locale
fi
pushd packages/desktop-client/locale > /dev/null
git pull
popd > /dev/null
packages/desktop-client/bin/remove-untranslated-languages
yarn workspace @actual-app/web build --mode=desktop # electron specific build
yarn workspace desktop-electron update-client

View File

@@ -77,5 +77,9 @@ export const setI18NextLanguage = (language: string) => {
return;
}
if (language === i18n.language) {
return; // language is already set
}
i18n.changeLanguage(language || 'en');
};

View File

@@ -0,0 +1,6 @@
---
category: Bugfix
authors: [MikesGlitch]
---
Fix Electron language support