Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Translation: desktop-client/src/components/budget/BudgetTotals.tsx #3367

Conversation

nmathey
Copy link
Contributor

@nmathey nmathey commented Sep 4, 2024

Translation support for: desktop-client/src/components/budget/BudgetTotals.tsx

@actual-github-bot actual-github-bot bot changed the title Translation: desktop-client/src/components/budget/BudgetTotals.tsx [WIP] Translation: desktop-client/src/components/budget/BudgetTotals.tsx Sep 4, 2024
Copy link

netlify bot commented Sep 4, 2024

Deploy Preview for actualbudget ready!

Name Link
🔨 Latest commit b6fc36a
🔍 Latest deploy log https://app.netlify.com/sites/actualbudget/deploys/66da36e59c24280009202aca
😎 Deploy Preview https://deploy-preview-3367.demo.actualbudget.org
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Contributor

github-actions bot commented Sep 4, 2024

Bundle Stats — desktop-client

Hey there, this message comes from a GitHub action that helps you and reviewers to understand how these changes affect the size of this project's bundle.

As this PR is updated, I'll keep you updated on how the bundle size is impacted.

Total

Files count Total bundle size % Changed
9 5.22 MB → 5.22 MB (+132 B) +0.00%
Changeset
File Δ Size
src/components/budget/BudgetTotals.tsx 📈 +132 B (+4.26%) 3.03 kB → 3.16 kB
View detailed bundle breakdown

Added

No assets were added

Removed

No assets were removed

Bigger

Asset File Size % Changed
static/js/wide.js 224.18 kB → 224.31 kB (+132 B) +0.06%

Smaller

No assets were smaller

Unchanged

Asset File Size % Changed
static/js/resize-observer.js 18.37 kB 0%
static/js/indexeddb-main-thread-worker-e59fee74.js 13.5 kB 0%
static/js/BackgroundImage.js 122.29 kB 0%
static/js/narrow.js 78.61 kB 0%
static/js/usePreviewTransactions.js 1.59 kB 0%
static/js/AppliedFilters.js 21.01 kB 0%
static/js/ReportRouter.js 1.49 MB 0%
static/js/index.js 3.25 MB 0%

Copy link
Contributor

github-actions bot commented Sep 4, 2024

Bundle Stats — loot-core

Hey there, this message comes from a GitHub action that helps you and reviewers to understand how these changes affect the size of this project's bundle.

As this PR is updated, I'll keep you updated on how the bundle size is impacted.

Total

Files count Total bundle size % Changed
1 1.19 MB 0%

Changeset

No files were changed

View detailed bundle breakdown

Added

No assets were added

Removed

No assets were removed

Bigger

No assets were bigger

Smaller

No assets were smaller

Unchanged

Asset File Size % Changed
kcab.worker.js 1.19 MB 0%

@@ -54,11 +56,11 @@ export const BudgetTotals = memo(function BudgetTotals({
WebkitUserSelect: 'none',
}}
>
<View style={{ flexGrow: '1' }}>Category</View>
<View style={{ flexGrow: '1' }}>{t('Category')}</View>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good now! Sorry for one last comment, the convention we've been using in the rest of the code base for components is to use <Trans>. I.e.:

Suggested change
<View style={{ flexGrow: '1' }}>{t('Category')}</View>
<View style={{ flexGrow: '1' }}><Trans>Category</Trans></View>

You'll need to import it as well

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah there are discussion around those to different stage on discord. I did see real statement yet but I'm might be wrong, that why I use the lazy way using one unique code style :p

However reading the doc it is clearer for me I have to use component in some cases: https://actualbudget.org/docs/contributing/i18n

I'll rework the file. Thanks for your heads up.

@jfdoming jfdoming merged commit fca1bcc into actualbudget:master Sep 5, 2024
19 checks passed
a-gradina pushed a commit to a-gradina/actual that referenced this pull request Sep 15, 2024
…tsx (actualbudget#3367)

* i18 translation

* realease note

* translate 'arial-label' text

* translate 'text'

* fixing 'text' translation

* <Trans> component for HTML tag

* Lint

---------

Co-authored-by: Julian Dominguez-Schatz <julian.dominguezschatz@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants