Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
actual-vt-capstone
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
danieljk
actual-vt-capstone
Commits
0a59f793
Unverified
Commit
0a59f793
authored
6 months ago
by
NickFR
Committed by
GitHub
6 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Translation: desktop-client/src/components/budget/BalanceWithCarryover.tsx (#3352)
parent
cfa9ac09
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
packages/desktop-client/src/components/budget/BalanceWithCarryover.tsx
+15
-7
15 additions, 7 deletions
...top-client/src/components/budget/BalanceWithCarryover.tsx
upcoming-release-notes/3352.md
+6
-0
6 additions, 0 deletions
upcoming-release-notes/3352.md
with
21 additions
and
7 deletions
packages/desktop-client/src/components/budget/BalanceWithCarryover.tsx
+
15
−
7
View file @
0a59f793
// @ts-strict-ignore
import
React
,
{
type
ComponentPropsWithoutRef
}
from
'
react
'
;
import
{
useTranslation
}
from
'
react-i18next
'
;
import
{
useFeatureFlag
}
from
'
../../hooks/useFeatureFlag
'
;
import
{
SvgArrowThinRight
}
from
'
../../icons/v1
'
;
...
...
@@ -77,6 +78,7 @@ export function BalanceWithCarryover({
carryoverIndicator
=
DefaultCarryoverIndicator
,
...
props
}:
BalanceWithCarryoverProps
)
{
const
{
t
}
=
useTranslation
();
const
carryoverValue
=
useSheetValue
(
carryover
);
const
balanceValue
=
useSheetValue
(
balance
);
const
goalValue
=
useSheetValue
(
goal
);
...
...
@@ -132,34 +134,40 @@ export function BalanceWithCarryover({
<
View
style
=
{
{
padding
:
10
}
}
>
<
span
style
=
{
{
fontWeight
:
'
bold
'
}
}
>
{
differenceToGoal
===
0
?
(
<
span
style
=
{
{
color
:
theme
.
noticeText
}
}
>
Fully funded
</
span
>
<
span
style
=
{
{
color
:
theme
.
noticeText
}
}
>
{
t
(
'
Fully funded
'
)
}
</
span
>
)
:
differenceToGoal
>
0
?
(
<
span
style
=
{
{
color
:
theme
.
noticeText
}
}
>
Overfunded (
{
format
(
differenceToGoal
,
'
financial
'
)
}
)
{
t
(
'
Overfunded ({{amount}})
'
,
{
amount
:
format
(
differenceToGoal
,
'
financial
'
),
})
}
</
span
>
)
:
(
<
span
style
=
{
{
color
:
theme
.
errorText
}
}
>
Underfunded (
{
format
(
differenceToGoal
,
'
financial
'
)
}
)
{
t
(
'
Underfunded ({{amount}})
'
,
{
amount
:
format
(
differenceToGoal
,
'
financial
'
),
})
}
</
span
>
)
}
</
span
>
<
GoalTooltipRow
>
<
div
>
Goal Type:
</
div
>
<
div
>
{
t
(
'
Goal Type:
'
)
}
</
div
>
<
div
>
{
longGoalValue
===
1
?
'
Long
'
:
'
Template
'
}
</
div
>
</
GoalTooltipRow
>
<
GoalTooltipRow
>
<
div
>
Goal:
</
div
>
<
div
>
{
t
(
'
Goal:
'
)
}
</
div
>
<
div
>
{
format
(
goalValue
,
'
financial
'
)
}
</
div
>
</
GoalTooltipRow
>
<
GoalTooltipRow
>
{
longGoalValue
!==
1
?
(
<>
<
div
>
Budgeted:
</
div
>
<
div
>
{
t
(
'
Budgeted:
'
)
}
</
div
>
<
div
>
{
format
(
budgetedValue
,
'
financial
'
)
}
</
div
>
</>
)
:
(
<>
<
div
>
Balance:
</
div
>
<
div
>
{
t
(
'
Balance:
'
)
}
</
div
>
<
div
>
{
format
(
balanceValue
,
'
financial
'
)
}
</
div
>
</>
)
}
...
...
This diff is collapsed.
Click to expand it.
upcoming-release-notes/3352.md
0 → 100644
+
6
−
0
View file @
0a59f793
---
category
:
Maintenance
authors
:
[
nmathey
]
---
Support translations in Translation support for desktop-client/src/components/budget/BalanceWithCarryover.tsx
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment