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(billing): add some us wording in commitment page #16362

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ export default class {

$onInit() {
this.user = this.coreConfig.getUser();

const translationKeySuffix =
this.user.ovhSubsidiary === 'US' ? '_region_us' : '';
this.billingCommitmentNoneTranslationKey = `billing_commitment_none${translationKeySuffix}`;
this.billingCommitmentNoneWithDiscountTranslationKey = `billing_commitment_none_with_discount${translationKeySuffix}`;
this.billingCommitmentDurationTranslationKey = `billing_commitment_duration${translationKeySuffix}`;

this.isLoadingService = true;
this.paymentMethod = null;
this.model = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<div data-ng-if="!$ctrl.isLoadingService">
<p
data-ng-if="!$ctrl.service.isEngaged() || $ctrl.service.isEngagementExpired()"
data-translate="{{ $ctrl.hasDiscountAvailable ? 'billing_commitment_none_with_discount' : 'billing_commitment_none' }}"
data-translate="{{:: $ctrl.hasDiscountAvailable ? $ctrl.billingCommitmentNoneWithDiscountTranslationKey : $ctrl.billingCommitmentNoneTranslationKey }}"
data-translate-values="{
serviceName: $ctrl.service.name,
serviceType:(('billing_commitment_service_' + $ctrl.service.productType) | translate)
Expand All @@ -38,7 +38,7 @@
<oui-stepper on-finish="$ctrl.commit()">
<oui-step-form
name="duration"
header="{{:: 'billing_commitment_duration' | translate}}"
header="{{:: $ctrl.billingCommitmentDurationTranslationKey | translate}}"
loading="$ctrl.isLoadingService"
valid="$ctrl.model.duration"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,17 @@
"billing_commitment_commit_with_discount": "S'engager et bénéficier d'une remise",
"billing_commitment_commit_again_with_discount": "Se réengager et bénéficier d'une remise",
"billing_commitment_none": "Vous n’êtes actuellement pas engagé sur votre service {{ serviceName }}.",
"billing_commitment_none_region_us": "Vous n’êtes actuellement pas engagé sur votre service {{ serviceName }}.",
"billing_commitment_commit_again_description": "Vous êtes actuellement engagé sur votre service {{ serviceName }} jusqu’au {{ endDate }}. Dès à présent, vous pouvez prolonger votre engagement pour la durée de votre choix.",
"billing_commitment_none_with_discount": "Vous n’êtes actuellement pas engagé sur votre service {{ serviceName }}. Vous pouvez, dès aujourd’hui, bénéficier d’une remise en vous engageant sur une durée pour votre {{ serviceType }}.",
"billing_commitment_none_with_discount_region_us": "Vous n’êtes actuellement pas engagé sur votre service {{ serviceName }}. Vous pouvez, dès aujourd’hui, bénéficier d’une remise en vous engageant sur une durée pour votre {{ serviceType }}.",
"billing_commitment_commit_again_description_with_discount": "Vous êtes actuellement engagé sur votre service {{ serviceName }} jusqu’au {{ endDate }}. Vous pouvez continuer à bénéficier d’un tarif préférentiel en vous ré-engageant sur votre {{ serviceType }}.",
"billing_commitment_service_dedicated_server": "serveur dédié",
"billing_commitment_service_storage_netapp": "espace de stockage Enterprise File Storage",
"billing_commitment_service_dedicated_nasha": "service de stockage NAS-HA",
"billing_commitment_service_vps": "Serveurs privés virtuels",
"billing_commitment_duration": "Sélectionnez une durée d'engagement",
"billing_commitment_duration_region_us": "Sélectionnez une durée d'engagement",
"billing_commitment_duration_current_price": "Tarif actuel par défaut {{ price }}/mois",
"billing_commitment_payment": "Sélectionnez une modalité de paiement",
"billing_commitment_payment_method": "Sélectionnez un moyen de paiement",
Expand Down
Loading