Skip to content

Commit

Permalink
Merge pull request #5357 from vuestorefront/fix/5337-missing-i18n-tags
Browse files Browse the repository at this point in the history
fix: Add missing `i18n` tags
  • Loading branch information
filrak committed Dec 28, 2020
2 parents d1529c5 + 496c566 commit d40c163
Show file tree
Hide file tree
Showing 33 changed files with 500 additions and 160 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
/>
</ValidationProvider>
</div>
<SfButton data-cy="my-profile-btn_update-password" class="form__button">Update password</SfButton>
<SfButton data-cy="my-profile-btn_update-password" class="form__button">{{ $t('Update password') }}</SfButton>
</form>
</ValidationObserver>
</template>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
:errorMessage="errors[0]"
/>
</ValidationProvider>
<SfButton data-cy="my-profile-btn_update" class="form__button">Update personal data</SfButton>
<SfButton data-cy="my-profile-btn_update" class="form__button">{{ $t('Update personal data') }}</SfButton>
</form>
</ValidationObserver>
</template>
Expand Down
86 changes: 85 additions & 1 deletion packages/commercetools/theme/lang/de.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,89 @@ export default {
'Save for later': 'Für später speichern',
'Add to compare': 'Hinzufügen zum vergleichen',
'Match it with': 'Kombiniere es mit',
'Share your look': 'Teile deinen Look'
'Share your look': 'Teile deinen Look',
'Product description': 'Das Karissa V-Neck Tee hat eine halb taillierte Form schmeichelhaft für jede Figur. Sie können mit ins Fitnessstudio gehen Vertrauen, während es Kurven umarmt und häufiges "Problem" verbirgt Bereiche. Finden Sie atemberaubende Cocktailkleider für Frauen und feiern Sie Kleider.',
'Brand': 'Marke',
'Instruction1': 'Um mich kümmern',
'Instruction2': 'Nur hier für die Pflegehinweise?',
'Instruction3': 'Ja, das haben wir uns gedacht',
'Items': 'Gegenstände',
'View': 'Ansicht',
'Show on page': 'Auf Seite anzeigen',
'Done': 'Fertig',
'Clear all': 'Alles löschen',
'Empty': 'Sieht so aus, als hätten Sie der Tasche noch keine Artikel hinzugefügt. Beginnen Sie mit dem Einkaufen, um es auszufüllen.',
'Help & FAQs': 'Hilfe & FAQs',
'Download': 'Laden Sie unsere Anwendung herunter',
'Find out more': 'Finde mehr heraus',
'Login': 'Anmeldung',
'Forgotten password?': 'Passwort vergessen?',
'No account': `Sie haben noch keinen Account?`,
'Register today': 'Melde dich noch heute an',
'Go to checkout': 'Zur Kasse gehen',
'Go back shopping': 'Zurück einkaufen',
'Personal details': 'Persönliche Daten',
'Edit': 'Bearbeiten',
'Shipping details': 'Versanddetails',
'Billing address': 'Rechnungsadresse',
'Same as shipping address': 'Wie Versandadresse',
'Payment method': 'Zahlungsmethode',
'Apply': 'Übernehmen',
'Update password': 'Passwort aktualisieren',
'Update personal data': 'Persönliche Daten aktualisieren',
'Item': 'Artikel',
'Go back': 'Go back',
'Continue to shipping': 'Weiter zum Versand',
'I agree to': 'Ich stimme zu',
'Terms and conditions': 'Allgemeine Geschäftsbedingungen',
'Pay for order': 'Für Bestellung bezahlen',
'Log into your account': 'In dein Konto einloggen',
'or fill the details below': 'oder füllen Sie die Details unten',
'Enjoy your free account': 'Enjoy these perks with your free account!',
'Continue to payment': 'Weiter zur Zahlung',
'Order No.': 'Bestellnummer',
'Successful placed order': 'Sie haben die Bestellung erfolgreich aufgegeben. Sie können den Status Ihres Bestellen Sie über unsere Lieferstatusfunktion. Sie erhalten eine Bestellung Bestätigungs-E-Mail mit Details Ihrer Bestellung und einem Link zum Verfolgen der Bestellung Fortschritt.',
'Info after order': 'Sie können sich mit E-Mail und definiertem Passwort in Ihrem Konto anmelden vorhin. Überprüfen Sie in Ihrem Konto Ihre Profildaten Transaktionsverlauf, Abonnement für Newsletter bearbeiten.',
'Allow order notifications': 'Bestellbenachrichtigungen zulassen',
'Feedback': 'Ihr Feedback ist uns wichtig. Lassen Sie uns wissen, was wir verbessern können.',
'Send my feedback': 'Senden Sie mein Feedback',
'Go back to shop': 'Zurück zum Einkaufen',
'Read all reviews': 'Alle Bewertungen lesen',
'Color': 'Farbe',
'Contact details updated': 'Halten Sie Ihre Adressen und Kontaktdaten auf dem neuesten Stand.',
'Manage billing addresses': 'Alle gewünschten Rechnungsadressen verwalten (Arbeitsplatz, Privatadresse ...) Auf diese Weise müssen Sie die Rechnungsadresse nicht bei jeder Bestellung manuell eingeben.',
'Change': 'Änderungsänderung',
'Delete': 'Löschen',
'Add new address': 'Neue Adresse hinzufügen',
'Set up newsletter': 'Richten Sie Ihren Newsletter ein und wir senden Ihnen wöchentlich Informationen zu neuen Produkten und Trends aus den von Ihnen ausgewählten Bereichen',
'Sections that interest you': 'Abschnitte, die Sie interessieren',
'Save changes': 'Änderungen speichern',
'Read and understand': 'Ich habe das gelesen und verstanden',
'Privacy': 'Datenschutz',
'Cookies Policy': 'Cookie-Richtlinie',
'Commercial information': 'und erklären sich damit einverstanden, personalisierte Handelsinformationen vom Markennamen per E-Mail zu erhalten',
'Feel free to edit': 'Fühlen Sie sich frei, Ihre unten stehenden Daten zu bearbeiten, damit Ihr Konto immer auf dem neuesten Stand ist',
'Use your personal data': 'Bei Markennamen legen wir großen Wert auf Datenschutzfragen und verpflichten uns, die persönlichen Daten unserer Benutzer zu schützen. Erfahren Sie mehr darüber, wie wir Ihre persönlichen Daten pflegen und verwenden',
'Privacy Policy': 'Datenschutzrichtlinie',
'Change password your account': 'Wenn Sie das Passwort ändern möchten, um auf Ihr Konto zuzugreifen, geben Sie die folgenden Informationen ein',
'Your current email address is': 'Ihre aktuelle E-Mail-Adresse lautet',
'Product': 'Produkt',
'Details and status orders': 'Überprüfen Sie die Details und den Status Ihrer Bestellungen im Online-Shop. Sie können Ihre Bestellung auch stornieren oder eine Rücksendung anfordern. ',
'You currently have no orders': 'Sie haben derzeit keine Bestellungen',
'Start shopping': 'Einkaufen starten',
'Download': 'Herunterladen',
'Download all': 'Alle herunterladen',
'View details': 'Details anzeigen',
'Manage shipping addresses': 'Alle gewünschten Versandadressen verwalten (Arbeitsplatz, Privatadresse ...) Auf diese Weise müssen Sie die Versandadresse nicht bei jeder Bestellung manuell eingeben.',
'Quantity': 'Menge',
'Price': 'Preis',
'Back to homepage': 'Zurück zur Homepage',
'Select shipping method': 'Versandart auswählen',
'Review my order': 'Meine Bestellung überprüfen',
'Select payment method': 'Zahlungsmethode auswählen',
'Make an order': 'Bestellung aufgeben',
'or': 'oder',
'login in to your account': 'Anmelden bei Ihrem Konto',
'Create an account': 'Konto erstellen',
'Your bag is empty': 'Ihre Tasche ist leer',
};
86 changes: 85 additions & 1 deletion packages/commercetools/theme/lang/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,89 @@ export default {
'Save for later': 'Save for later',
'Add to compare': 'Add to compare',
'Match it with': 'Match it with',
'Share your look': 'Share your look'
'Share your look': 'Share your look',
'Product description': `The Karissa V-Neck Tee features a semi-fitted shape that's flattering for every figure. You can hit the gym with confidence while it hugs curves and hides common "problem" areas. Find stunning women's cocktail dresses and party dresses.`,
'Brand': 'Brand',
'Instruction1': 'Take care of me',
'Instruction2': 'Just here for the care instructions?',
'Instruction3': 'Yeah, we thought so',
'Items': 'Items',
'View': 'View',
'Show on page': 'Show on page',
'Done': 'Done',
'Clear all': 'Clear all',
'Empty': 'Looks like you haven’t added any items to the bag yet. Start shopping to fill it in.',
'Help & FAQs': 'Help & FAQs',
'Download': 'Download our application.',
'Find out more': 'Find out more',
'Login': 'Login',
'Forgotten password?': 'Forgotten password?',
'No account': `Don't have an account yet?`,
'Register today': 'Register today',
'Go to checkout': 'Go to checkout',
'Go back shopping': 'Go back shopping',
'Personal details': 'Personal details',
'Edit': 'Edit',
'Shipping details': 'Shipping details',
'Billing address': 'Billing address',
'Same as shipping address': 'Same as shipping address',
'Payment method': 'Payment method',
'Apply': 'Apply',
'Update password': 'Update password',
'Update personal data': 'Update personal data',
'Item': 'Item',
'Go back': 'Go back',
'Continue to shipping': 'Continue to shipping',
'I agree to': 'I agree to',
'Terms and conditions': 'Terms and conditions',
'Pay for order': 'Pay for order',
'Log into your account': 'Log into your account',
'or fill the details below': 'or fill the details below',
'Enjoy your free account': 'Enjoy these perks with your free account!',
'Continue to payment': 'Continue to payment',
'Order No.': 'Order No.',
'Successful placed order': 'You have successfully placed the order. You can check status of your order by using our delivery status feature. You will receive an order confirmation e-mail with details of your order and a link to track its progress.',
'Info after order': 'You can log to your account using e-mail and password defined earlier. On your account you can edit your profile data, check history of transactions, edit subscription to newsletter.',
'Allow order notifications': 'Allow order notifications',
'Feedback': 'Your feedback is important to us. Let us know what we could improve.',
'Send my feedback': 'Send my feedback',
'Go back to shop': 'Go back to shop',
'Read all reviews': 'Read all reviews',
'Color': 'Color',
'Contact details updated': 'Keep your addresses and contact details updated.',
'Manage billing addresses': 'Manage all the billing addresses you want (work place, home address...) This way you won"t have to enter the billing address manually with each order.',
'Change': 'Change',
'Delete': 'Delete',
'Add new address': 'Add new address',
'Set up newsletter': 'Set up your newsletter and we will send you information about new products and trends from the sections you selected every week.',
'Sections that interest you': 'Sections that interest you',
'Save changes': 'Save changes',
'Read and understand': 'I have read and understand the',
'Privacy': 'Privacy',
'Cookies Policy': 'Cookies Policy',
'Commercial information': 'and agree to receive personalized commercial information from Brand name by email',
'Feel free to edit': 'Feel free to edit any of your details below so your account is always up to date',
'Use your personal data': 'At Brand name, we attach great importance to privacy issues and are committed to protecting the personal data of our users. Learn more about how we care and use your personal data in the',
'Privacy Policy': 'Privacy Policy',
'Change password your account': 'If you want to change the password to access your account, enter the following information',
'Your current email address is': 'Your current email address is',
'Product': 'Product',
'Details and status orders': 'Check the details and status of your orders in the online store. You can also cancel your order or request a return.',
'You currently have no orders': 'You currently have no orders',
'Start shopping': 'Start shopping',
'Download': 'Download',
'Download all': 'Download all',
'View details': 'View details',
'Manage shipping addresses': 'Manage all the shipping addresses you want (work place, home address...) This way you won"t have to enter the shipping address manually with each order.',
'Quantity': 'Quantity',
'Price': 'Price',
'Back to homepage': 'Back to homepage',
'Select shipping method': 'Select shipping method',
'Review my order': 'Review my order',
'Select payment method': 'Select payment method',
'Make an order': 'Make an order',
'or': 'or',
'login in to your account': 'login in to your account',
'Create an account': 'Create an account',
'Your bag is empty': 'Your bag is empty',
};
29 changes: 19 additions & 10 deletions packages/commercetools/theme/pages/Checkout/OrderReview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
{{ personalDetails.email }}
</p>
</div>
<SfButton class="sf-button--text color-secondary accordion__edit" @click="$emit('click:edit', 0)">Edit</SfButton>
<SfButton class="sf-button--text color-secondary accordion__edit" @click="$emit('click:edit', 0)">
{{ $t('Edit') }}
</SfButton>
</div>
</SfAccordionItem>
<SfAccordionItem header="Shipping address">
Expand All @@ -30,15 +32,16 @@
</p>
<p class="content">{{ shippingDetails.phoneNumber }}</p>
</div>
<SfButton class="sf-button--text color-secondary accordion__edit" @click="$emit('click:edit', 1)">Edit</SfButton
>
<SfButton class="sf-button--text color-secondary accordion__edit" @click="$emit('click:edit', 1)">
{{ $t('Edit') }}
</SfButton>
</div>
</SfAccordionItem>
<SfAccordionItem header="Billing address">
<div class="accordion__item">
<div class="accordion__content">
<p v-if="billingSameAsShipping" class="content">
Same as shipping address
{{ $t('Same as shipping address') }}
</p>
<template v-else>
<p class="content">
Expand All @@ -50,21 +53,25 @@
<p class="content">{{ billingDetails.phoneNumber }}</p>
</template>
</div>
<SfButton class="sf-button--text color-secondary accordion__edit" @click="$emit('click:edit', 2)">Edit</SfButton>
<SfButton class="sf-button--text color-secondary accordion__edit" @click="$emit('click:edit', 2)">
{{ $t('Edit') }}
</SfButton>
</div>
</SfAccordionItem>
<SfAccordionItem header="Payment method">
<div class="accordion__item">
<div class="accordion__content">
<p class="content">{{ chosenPaymentMethod.label }}</p>
</div>
<SfButton class="sf-button--text color-secondary accordion__edit" @click="$emit('click:edit', 2)">Edit</SfButton>
<SfButton class="sf-button--text color-secondary accordion__edit" @click="$emit('click:edit', 2)">
{{ $t('Edit') }}
</SfButton>
</div>
</SfAccordionItem>
</SfAccordion>
<SfTable class="sf-table--bordered table desktop-only">
<SfTableHeading class="table__row">
<SfTableHeader class="table__header table__image">Item</SfTableHeader>
<SfTableHeader class="table__header table__image">{{ $t('Item') }}</SfTableHeader>
<SfTableHeader
v-for="tableHeader in tableHeaders"
:key="tableHeader"
Expand Down Expand Up @@ -125,14 +132,16 @@
<SfCheckbox v-model="terms" name="terms" class="summary__terms">
<template #label>
<div class="sf-checkbox__label">
I agree to <SfLink href="#">Terms and conditions</SfLink>
{{ $t('I agree to') }} <SfLink href="#"> {{ $t('Terms and conditions') }}</SfLink>
</div>
</template>
</SfCheckbox>
<div class="summary__action">
<nuxt-link to="/checkout/payment" class="sf-button color-secondary summary__back-button">Go back</nuxt-link>
<nuxt-link to="/checkout/payment" class="sf-button color-secondary summary__back-button">
{{ $t('Go back') }}
</nuxt-link>
<SfButton class="summary__action-button" @click="processOrder" :disabled="loading.order">
Make an order
{{ $t('Make an order') }}
</SfButton>
</div>
</div>
Expand Down
10 changes: 6 additions & 4 deletions packages/commercetools/theme/pages/Checkout/Payment.vue
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
type="submit"
@click.native="canAddNewAddress = true"
>
Add new address
{{ $t('Add new address') }}
</SfButton>
<SfHeading
v-if="canContinueToReview"
Expand Down Expand Up @@ -161,12 +161,14 @@
</SfRadio>
</div>
<div class="form__action">
<nuxt-link to="/checkout/shipping" class="sf-button color-secondary form__back-button">Go back</nuxt-link>
<nuxt-link to="/checkout/shipping" class="sf-button color-secondary form__back-button">
{{ $t('Go back') }}
</nuxt-link>
<SfButton class="form__action-button" type="submit" :disabled="loading.billingAddress" v-if="canContinueToReview">
Review my order
{{ $t('Review my order') }}
</SfButton>
<SfButton class="form__action-button" type="submit" :disabled="loading.billingAddress" v-else>
Select payment method
{{ $t('Select payment method') }}
</SfButton>
</div>
</div>
Expand Down
10 changes: 5 additions & 5 deletions packages/commercetools/theme/pages/Checkout/PersonalDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
<div>
<div class="log-in desktop-only">
<SfButton class="log-in__button color-secondary" @click="toggleLoginModal">
Log in to your account
{{ $t('Log into your account') }}
</SfButton>
<p class="log-in__info">or fill the details below:</p>
<p class="log-in__info">{{ $t('or fill the details below') }}:</p>
</div>
<SfHeading :level="3" title="Personal details" class="sf-heading--left sf-heading--no-underline title" />
<ValidationObserver v-slot="{ handleSubmit }">
Expand Down Expand Up @@ -47,7 +47,7 @@
</ValidationProvider>
<div class="info">
<p class="info__heading">
Enjoy these perks with your free account!
{{ $t('Enjoy your free account') }}
</p>
<SfCharacteristic
v-for="(characteristic, key) in characteristics"
Expand Down Expand Up @@ -80,9 +80,9 @@
</ValidationProvider>
</transition>
<div class="form__action">
<nuxt-link to="/" class="sf-button color-secondary form__back-button">Go back</nuxt-link>
<nuxt-link to="/" class="sf-button color-secondary form__back-button">{{ $t('Go back') }}</nuxt-link>
<SfButton class="form__action-button" type="submit" :disabled="loading.personalDetails">
Continue to shipping
{{ $t('Continue to shipping') }}
</SfButton>
</div>
</form>
Expand Down
6 changes: 3 additions & 3 deletions packages/commercetools/theme/pages/Checkout/Shipping.vue
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
type="submit"
@click.native="canAddNewAddress = true"
>
Add new address
{{ $t('Add new address') }}
</SfButton>
<SfHeading
v-if="canContinueToPayment(dirty)"
Expand Down Expand Up @@ -166,10 +166,10 @@
<div class="form__action">
<nuxt-link to="/checkout/personal-details" class="sf-button color-secondary form__back-button">Go back</nuxt-link>
<SfButton class="form__action-button" type="submit" v-if="canContinueToPayment(dirty)" :disabled="!isShippingMethodCompleted || loading.shippingAddress">
Continue to payment
{{ $t('Continue to payment') }}
</SfButton>
<SfButton class="form__action-button" type="submit" :disabled="loading.shippingMethods" v-else>
Select shipping method
{{ $t('Select shipping method') }}
</SfButton>
</div>
</div>
Expand Down

0 comments on commit d40c163

Please sign in to comment.