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

feat(cc-pricing-product): add translations for dedicated and is-migratable features #835

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/components/cc-pricing-product/cc-pricing-product.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@ const FEATURES_I18N = {
'connection-limit': () => i18n('cc-pricing-product.feature.connection-limit'),
cpu: () => i18n('cc-pricing-product.feature.cpu'),
databases: () => i18n('cc-pricing-product.feature.databases'),
dedicated: () => i18n('cc-pricing-product.feature.dedicated'),
'disk-size': () => i18n('cc-pricing-product.feature.disk-size'),
gpu: () => i18n('cc-pricing-product.feature.gpu'),
'has-logs': () => i18n('cc-pricing-product.feature.has-logs'),
'has-metrics': () => i18n('cc-pricing-product.feature.has-metrics'),
'is-migratable': () => i18n('cc-pricing-product.feature.is-migratable'),
'max-db-size': () => i18n('cc-pricing-product.feature.max-db-size'),
memory: () => i18n('cc-pricing-product.feature.memory'),
version: () => i18n('cc-pricing-product.feature.version'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ const fakeProductPlans = [
{ code: 'version', type: 'string', value: '1.2.3' },
{ code: 'gpu', type: 'number', value: '2' },
{ code: 'cpu', type: 'number', value: '1' },
{ code: 'dedicated', type: 'boolean', value: 'false' },
{ code: 'is-migratable', type: 'boolean', value: 'false' },
{ code: 'ignored-because-not-listed', type: 'string', value: 'ignore this' },
{ code: 'has-metrics', type: 'boolean', value: 'false' },
{ code: 'memory', type: 'bytes', value: String(256 * 1024 ** 2) },
Expand All @@ -34,6 +36,8 @@ const fakeProductPlans = [
{ code: 'databases', type: 'number', value: '20' },
{ code: 'ignored-because-not-listed', type: 'string', value: 'ignore this' },
{ code: 'cpu', type: 'number', value: '2' },
{ code: 'dedicated', type: 'boolean', value: 'false' },
{ code: 'is-migratable', type: 'boolean', value: 'false' },
{ code: 'disk-size', type: 'bytes', value: String(15 * 1024 ** 3) },
{ code: 'gpu', type: 'number', value: '4' },
{ code: 'memory', type: 'bytes', value: String(512 * 1024 ** 2) },
Expand All @@ -50,6 +54,8 @@ const fakeProductPlans = [
{ code: 'cpu', type: 'number', value: '4' },
{ code: 'disk-size', type: 'bytes', value: String(2000 * 1024 ** 3) },
{ code: 'databases', type: 'number', value: '200' },
{ code: 'dedicated', type: 'boolean', value: 'true' },
{ code: 'is-migratable', type: 'boolean', value: 'true' },
{ code: 'connection-limit', type: 'number', value: '100' },
{ code: 'gpu', type: 'number', value: '8' },
{ code: 'has-logs', type: 'boolean', value: 'true' },
Expand Down Expand Up @@ -99,6 +105,8 @@ export const dataLoadedWithFakeProduct = makeStory(conf, {
productFeatures: [
{ code: 'connection-limit', type: 'number' },
{ code: 'cpu', type: 'number' },
{ code: 'dedicated', type: 'boolean' },
{ code: 'is-migratable', type: 'boolean' },
{ code: 'disk-size', type: 'bytes' },
{ code: 'gpu', type: 'number' },
{ code: 'has-logs', type: 'boolean' },
Expand Down
2 changes: 2 additions & 0 deletions src/translations/translations.en.js
Original file line number Diff line number Diff line change
Expand Up @@ -649,10 +649,12 @@ export const translations = {
'cc-pricing-product.feature.connection-limit': `Connection limit`,
'cc-pricing-product.feature.cpu': `vCPUs`,
'cc-pricing-product.feature.databases': `Databases`,
'cc-pricing-product.feature.dedicated': `Dedicated`,
'cc-pricing-product.feature.disk-size': `Disk size`,
'cc-pricing-product.feature.gpu': `GPUs`,
'cc-pricing-product.feature.has-logs': `Logs`,
'cc-pricing-product.feature.has-metrics': `Metrics`,
'cc-pricing-product.feature.is-migratable': `Migration tool`,
'cc-pricing-product.feature.max-db-size': `Max DB size`,
'cc-pricing-product.feature.memory': `RAM`,
'cc-pricing-product.feature.version': `Version`,
Expand Down
2 changes: 2 additions & 0 deletions src/translations/translations.fr.js
Original file line number Diff line number Diff line change
Expand Up @@ -662,10 +662,12 @@ export const translations = {
'cc-pricing-product.feature.connection-limit': `Limite de connexions`,
'cc-pricing-product.feature.cpu': `vCPUs`,
'cc-pricing-product.feature.databases': `Bases de données`,
'cc-pricing-product.feature.dedicated': `Dédié`,
'cc-pricing-product.feature.disk-size': `Taille du disque`,
'cc-pricing-product.feature.gpu': `GPUs`,
'cc-pricing-product.feature.has-logs': `Logs`,
'cc-pricing-product.feature.has-metrics': `Métriques`,
'cc-pricing-product.feature.is-migratable': `Outil de migration`,
'cc-pricing-product.feature.max-db-size': `Taille BDD max`,
'cc-pricing-product.feature.memory': `RAM`,
'cc-pricing-product.feature.version': `Version`,
Expand Down