Skip to content

Commit

Permalink
Update language files
Browse files Browse the repository at this point in the history
  • Loading branch information
dkliemsch committed Feb 24, 2021
1 parent 0c7f714 commit 0211942
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 8 deletions.
6 changes: 6 additions & 0 deletions client/dist/autotranslateField.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion client/dist/autotranslateField.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 7 additions & 3 deletions client/dist/autotranslateField.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/***/ ((module) => {

"use strict";
module.exports = JSON.parse('{"field":{"translateCta":"Übersetze von {sourceLocale} auf {targetLocale}"},"modal":{"translateCta":"Jetzt übersetzen","headline":"Übersetze von {sourceLocale} auf {targetLocale}","sourceValueLabel":"Inhalt {locale}"},"google":{"pricingHint":"<strong>{charCount}</strong> Zeichen werden mit Google Cloud Translation übersetzt, Kosten Informationen finden Sie <a href=\\"https://cloud.google.com/translate/pricing#cloud-translation---basic\\" target=\\"_blank\\">in deren Dokumention</a>."}}');
module.exports = JSON.parse('{"field":{"translateCta":"Übersetze von {sourceLocale} auf {targetLocale}"},"modal":{"translateCta":"Jetzt übersetzen","headline":"Übersetze von {sourceLocale} auf {targetLocale}","sourceValueLabel":"Inhalt {locale}"},"google":{"pricingHint":"<p><strong>{charCount}</strong> Zeichen werden mit <a href=\\"https://cloud.google.com/translate/pricing#cloud-translation---basic\\" target=\\"_blank\\">Google Cloud Translation</a> übersetzt.</p><p>Der aktuelle Inhalt des Feldes ({targetLocale}) wird dabei überschrieben.</p>"}}');

/***/ }),

Expand All @@ -19,7 +19,7 @@ module.exports = JSON.parse('{"field":{"translateCta":"Übersetze von {sourceLoc
/***/ ((module) => {

"use strict";
module.exports = JSON.parse('{"field":{"translateCta":"Translate from {sourceLocale} to {targetLocale}"},"modal":{"translateCta":"Translate now","headline":"Translate from {sourceLocale} to {targetLocale}","sourceValueLabel":"{locale} value"},"google":{"pricingHint":"<strong>{charCount}</strong> characters will be translated using Google Cloud Translation, check <a href=\\"https://cloud.google.com/translate/pricing#cloud-translation---basic\\" target=\\"_blank\\">their docs</a> for pricing information."}}');
module.exports = JSON.parse('{"field":{"translateCta":"Translate from {sourceLocale} to {targetLocale}"},"modal":{"translateCta":"Translate now","headline":"Translate from {sourceLocale} to {targetLocale}","sourceValueLabel":"{locale} value"},"google":{"pricingHint":"<p><strong>{charCount}</strong> characters will be translated using <a href=\\"https://cloud.google.com/translate/pricing#cloud-translation---basic\\" target=\\"_blank\\">Google Cloud Translation</a>.</p><p>The current content of the field ({targetLocale}) will be overwritten.</p>"}}');

/***/ }),

Expand Down Expand Up @@ -2040,6 +2040,8 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
//
//
//
//
//



Expand Down Expand Up @@ -20892,10 +20894,12 @@ var render = function() {
}),
_vm._v(" "),
_c("div", {
staticClass: "level51-pricingHint",
domProps: {
innerHTML: _vm._s(
_vm.$t(_vm.provider + ".pricingHint", {
charCount: _vm.charCount
charCount: _vm.charCount,
targetLocale: _vm.targetLocale.title
})
)
}
Expand Down
2 changes: 1 addition & 1 deletion client/dist/autotranslateField.js.map

Large diffs are not rendered by default.

16 changes: 15 additions & 1 deletion client/src/js/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@
class="level51-autotranslateField-sourceValue"
v-html="sourceValue" />

<div v-html="$t(`${provider}.pricingHint`, { charCount })" />
<div
class="level51-pricingHint"
v-html="$t(`${provider}.pricingHint`, { charCount, targetLocale: targetLocale.title })" />
</div>

<div class="modal-footer">
Expand Down Expand Up @@ -200,6 +202,18 @@ export default {
}
}
}
.level51-pricingHint {
p {
&:first-child {
margin-top: 0;
}
&:last-child {
margin-bottom: 0;
}
}
}
}
}
</style>
2 changes: 1 addition & 1 deletion client/src/lang/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"sourceValueLabel": "Inhalt {locale}"
},
"google": {
"pricingHint": "<strong>{charCount}</strong> Zeichen werden mit Google Cloud Translation übersetzt, Kosten Informationen finden Sie <a href=\"https://cloud.google.com/translate/pricing#cloud-translation---basic\" target=\"_blank\">in deren Dokumention</a>."
"pricingHint": "<p><strong>{charCount}</strong> Zeichen werden mit <a href=\"https://cloud.google.com/translate/pricing#cloud-translation---basic\" target=\"_blank\">Google Cloud Translation</a> übersetzt.</p><p>Der aktuelle Inhalt des Feldes ({targetLocale}) wird dabei überschrieben.</p>"
}
}
2 changes: 1 addition & 1 deletion client/src/lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"sourceValueLabel": "{locale} value"
},
"google": {
"pricingHint": "<strong>{charCount}</strong> characters will be translated using Google Cloud Translation, check <a href=\"https://cloud.google.com/translate/pricing#cloud-translation---basic\" target=\"_blank\">their docs</a> for pricing information."
"pricingHint": "<p><strong>{charCount}</strong> characters will be translated using <a href=\"https://cloud.google.com/translate/pricing#cloud-translation---basic\" target=\"_blank\">Google Cloud Translation</a>.</p><p>The current content of the field ({targetLocale}) will be overwritten.</p>"
}
}

0 comments on commit 0211942

Please sign in to comment.