Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
b8fe7d35
Commit
b8fe7d35
authored
Dec 10, 2021
by
Diana Zubova
Committed by
Phil Hughes
Dec 10, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix translation for Storage purchase
parent
6c464495
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
5 deletions
+7
-5
ee/app/assets/javascripts/subscriptions/buy_addons_shared/constants.js
.../javascripts/subscriptions/buy_addons_shared/constants.js
+1
-1
ee/spec/frontend/subscriptions/buy_addons_shared/app_spec.js
ee/spec/frontend/subscriptions/buy_addons_shared/app_spec.js
+4
-2
ee/spec/frontend/subscriptions/mock_data.js
ee/spec/frontend/subscriptions/mock_data.js
+1
-1
locale/gitlab.pot
locale/gitlab.pot
+1
-1
No files found.
ee/app/assets/javascripts/subscriptions/buy_addons_shared/constants.js
View file @
b8fe7d35
...
@@ -41,7 +41,7 @@ export const i18nStorageSummaryTitle = (quantity) =>
...
@@ -41,7 +41,7 @@ export const i18nStorageSummaryTitle = (quantity) =>
n__
(
'
Checkout|%{quantity} storage pack
'
,
'
Checkout|%{quantity} storage packs
'
,
quantity
);
n__
(
'
Checkout|%{quantity} storage pack
'
,
'
Checkout|%{quantity} storage packs
'
,
quantity
);
export
const
I18N_STORAGE_SUMMARY_TOTAL
=
s__
(
'
Checkout|Total storage: %{quantity} GB
'
);
export
const
I18N_STORAGE_SUMMARY_TOTAL
=
s__
(
'
Checkout|Total storage: %{quantity} GB
'
);
export
const
I18N_STORAGE_PRICE_PER_UNIT
=
s__
(
export
const
I18N_STORAGE_PRICE_PER_UNIT
=
s__
(
'
Checkout|$%{selectedPlanPrice} per 10 GB storage p
er pack
'
,
'
Checkout|$%{selectedPlanPrice} per 10 GB storage p
ack per year
'
,
);
);
export
const
I18N_STORAGE_TITLE
=
s__
(
"
Checkout|%{name}'s storage subscription
"
);
export
const
I18N_STORAGE_TITLE
=
s__
(
"
Checkout|%{name}'s storage subscription
"
);
export
const
I18N_STORAGE_TOOLTIP_NOTE
=
s__
(
export
const
I18N_STORAGE_TOOLTIP_NOTE
=
s__
(
...
...
ee/spec/frontend/subscriptions/buy_addons_shared/app_spec.js
View file @
b8fe7d35
...
@@ -148,7 +148,9 @@ describe('Buy Storage App', () => {
...
@@ -148,7 +148,9 @@ describe('Buy Storage App', () => {
describe
(
'
labels
'
,
()
=>
{
describe
(
'
labels
'
,
()
=>
{
it
(
'
shows labels correctly for 1 pack
'
,
async
()
=>
{
it
(
'
shows labels correctly for 1 pack
'
,
async
()
=>
{
const
mockApollo
=
createMockApolloProvider
();
const
mockApollo
=
createMockApolloProvider
({
plansQueryMock
:
jest
.
fn
().
mockResolvedValue
({
data
:
{
plans
:
mockStoragePlans
}
}),
});
await
createComponent
(
mockApollo
);
await
createComponent
(
mockApollo
);
expect
(
findQuantityText
().
text
()).
toMatchInterpolatedText
(
expect
(
findQuantityText
().
text
()).
toMatchInterpolatedText
(
...
@@ -156,7 +158,7 @@ describe('Buy Storage App', () => {
...
@@ -156,7 +158,7 @@ describe('Buy Storage App', () => {
);
);
expect
(
findSummaryLabel
().
text
()).
toBe
(
'
1 storage pack
'
);
expect
(
findSummaryLabel
().
text
()).
toBe
(
'
1 storage pack
'
);
expect
(
findSummaryTotal
().
text
()).
toBe
(
'
Total storage: 10 GB
'
);
expect
(
findSummaryTotal
().
text
()).
toBe
(
'
Total storage: 10 GB
'
);
expect
(
findPriceLabel
().
text
()).
toBe
(
'
$
10 per 10 GB storage per pack
'
);
expect
(
findPriceLabel
().
text
()).
toBe
(
'
$
60 per 10 GB storage pack per year
'
);
});
});
it
(
'
shows labels correctly for 2 packs
'
,
async
()
=>
{
it
(
'
shows labels correctly for 2 packs
'
,
async
()
=>
{
...
...
ee/spec/frontend/subscriptions/mock_data.js
View file @
b8fe7d35
...
@@ -25,7 +25,7 @@ export const mockStoragePlans = [
...
@@ -25,7 +25,7 @@ export const mockStoragePlans = [
{
{
id
:
'
storagePackPlanId
'
,
id
:
'
storagePackPlanId
'
,
code
:
'
storage
'
,
code
:
'
storage
'
,
pricePerYear
:
5
0
,
pricePerYear
:
6
0
,
name
:
'
Storage pack
'
,
name
:
'
Storage pack
'
,
__typename
:
PLAN_TYPE
,
__typename
:
PLAN_TYPE
,
},
},
...
...
locale/gitlab.pot
View file @
b8fe7d35
...
@@ -6782,7 +6782,7 @@ msgstr ""
...
@@ -6782,7 +6782,7 @@ msgstr ""
msgid "Checkout"
msgid "Checkout"
msgstr ""
msgstr ""
msgid "Checkout|$%{selectedPlanPrice} per 10 GB storage p
er pack
"
msgid "Checkout|$%{selectedPlanPrice} per 10 GB storage p
ack per year
"
msgstr ""
msgstr ""
msgid "Checkout|$%{selectedPlanPrice} per pack of 1,000 minutes"
msgid "Checkout|$%{selectedPlanPrice} per pack of 1,000 minutes"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment