diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index 6b430f506ef..224fcff0463 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -76,7 +76,7 @@ runs: run: packages/desktop-client/bin/remove-untranslated-languages shell: bash if: ${{ inputs.download-translations == 'true' && !env.ACT }} - - name: Overlay fork-owned Vietnamese translation - run: cp packages/desktop-client/locale-fork/vi.json packages/desktop-client/locale/vi.json + - name: Keep Vietnamese unavailable before UC5 approval + working-directory: ${{ inputs.working-directory }} + run: rm -f packages/desktop-client/locale/vi.json shell: bash - if: ${{ inputs.download-translations == 'true' && !env.ACT }} diff --git a/bin/package-browser b/bin/package-browser index 6e0e3d99b58..74da9e865d2 100755 --- a/bin/package-browser +++ b/bin/package-browser @@ -28,7 +28,8 @@ if [ "$SKIP_TRANSLATIONS" = false ]; then git pull popd > /dev/null packages/desktop-client/bin/remove-untranslated-languages - cp packages/desktop-client/locale-fork/vi.json packages/desktop-client/locale/vi.json fi +rm -f packages/desktop-client/locale/vi.json + lage build:browser --to=@actual-app/web diff --git a/bin/package-electron b/bin/package-electron index ecd25c94d1b..340708070ea 100755 --- a/bin/package-electron +++ b/bin/package-electron @@ -47,9 +47,10 @@ if [ $SKIP_TRANSLATIONS == false ]; then git pull popd > /dev/null packages/desktop-client/bin/remove-untranslated-languages - cp packages/desktop-client/locale-fork/vi.json packages/desktop-client/locale/vi.json fi +rm -f packages/desktop-client/locale/vi.json + export NODE_OPTIONS="--max-old-space-size=4096" yarn workspace @actual-app/crdt build diff --git a/packages/desktop-client/locale-fork/vi.json b/packages/desktop-client/locale-fork/vi.json index fd40ff3e70e..ff4b5d72bb1 100644 --- a/packages/desktop-client/locale-fork/vi.json +++ b/packages/desktop-client/locale-fork/vi.json @@ -151,5 +151,7 @@ "Found {{count}} split transactions with mismatched amounts on the below dates. Please review them manually:_one": "Đã tìm thấy {{count}} giao dịch tách có số tiền không khớp vào các ngày bên dưới. Vui lòng xem xét thủ công:", "Found {{count}} split transactions with mismatched amounts on the below dates. Please review them manually:_other": "Đã tìm thấy {{count}} giao dịch tách có số tiền không khớp vào các ngày bên dưới. Vui lòng xem xét thủ công:", "No split transactions found needing repair.": "Không tìm thấy giao dịch tách nào cần sửa.", - "Repair transactions": "Sửa giao dịch" + "Repair transactions": "Sửa giao dịch", + "<0>Let's add your first account. Accounts hold your transactions, like everyday spending, savings, credit cards, or cash. You can connect to your bank to import transactions automatically, or add them yourself.": "<0>Hãy thêm tài khoản đầu tiên. Tài khoản lưu các giao dịch của bạn, chẳng hạn như chi tiêu hằng ngày, tiền tiết kiệm, thẻ tín dụng hoặc tiền mặt. Bạn có thể kết nối với ngân hàng để tự động nhập giao dịch, hoặc tự thêm giao dịch.", + "You can add more accounts at any time from the sidebar.": "Bạn có thể thêm tài khoản bất cứ lúc nào từ thanh bên." } diff --git a/packages/desktop-client/src/languages.test.ts b/packages/desktop-client/src/languages.test.ts new file mode 100644 index 00000000000..4d50bb0becf --- /dev/null +++ b/packages/desktop-client/src/languages.test.ts @@ -0,0 +1,5 @@ +import { availableLanguages } from './i18n'; + +test('Vietnamese remains unavailable before UC5 approval', () => { + expect(availableLanguages).not.toContain('vi'); +});