@awsless/i18n 0.0.7 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -212,6 +212,7 @@ var createI18nPlugin = (props) => {
212
212
  if (newOriginals.length > 0) {
213
213
  this.info(`Translating ${newOriginals.length} new texts.`);
214
214
  const translations = await props.translate(props.default ?? "en", newOriginals);
215
+ this.info(`Translated ${translations.length} texts.`);
215
216
  for (const item of translations) {
216
217
  cache.set(item.original, item.locale, item.translation);
217
218
  }
package/dist/index.js CHANGED
@@ -174,6 +174,7 @@ var createI18nPlugin = (props) => {
174
174
  if (newOriginals.length > 0) {
175
175
  this.info(`Translating ${newOriginals.length} new texts.`);
176
176
  const translations = await props.translate(props.default ?? "en", newOriginals);
177
+ this.info(`Translated ${translations.length} texts.`);
177
178
  for (const item of translations) {
178
179
  cache.set(item.original, item.locale, item.translation);
179
180
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awsless/i18n",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "keywords": [