@adminforth/i18n 3.1.0 → 3.1.1
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.js +2 -0
- package/index.ts +3 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -715,9 +715,11 @@ export default class I18nPlugin extends I18nBase {
|
|
|
715
715
|
bunchResult = yield this.generateAndSaveBunch(initialState.prompt, initialState.strings, initialState.translations, initialState.updateStrings, initialState.lang, initialState.failedToTranslate, initialState.needToTranslateByLang, jobId, initialState.promptCost);
|
|
716
716
|
}
|
|
717
717
|
afLogger.debug(`Translation task for language ${initialState.lang} completed.`);
|
|
718
|
+
// the task details view shows the flag of the language from this state
|
|
718
719
|
const stateToSave = {
|
|
719
720
|
taskName: initialState.taskName,
|
|
720
721
|
lang: initialState.lang,
|
|
722
|
+
countryCode: initialState.countryCode,
|
|
721
723
|
failedToTranslate: initialState.failedToTranslate,
|
|
722
724
|
};
|
|
723
725
|
yield setTaskStateField(stateToSave);
|
package/index.ts
CHANGED
|
@@ -880,6 +880,7 @@ export default class I18nPlugin extends I18nBase<PluginOptions> {
|
|
|
880
880
|
translations?: any[],
|
|
881
881
|
updateStrings?: Record<string, { updates: any, category: string, strId: string, enStr: string, translatedStr: string }>,
|
|
882
882
|
lang?: string,
|
|
883
|
+
countryCode?: string,
|
|
883
884
|
failedToTranslate?: IFailedTranslation[],
|
|
884
885
|
needToTranslateByLang?: Record<string, any>,
|
|
885
886
|
promptCost?: number,
|
|
@@ -901,9 +902,11 @@ export default class I18nPlugin extends I18nBase<PluginOptions> {
|
|
|
901
902
|
}
|
|
902
903
|
afLogger.debug(`Translation task for language ${initialState.lang} completed.`);
|
|
903
904
|
|
|
905
|
+
// the task details view shows the flag of the language from this state
|
|
904
906
|
const stateToSave = {
|
|
905
907
|
taskName: initialState.taskName,
|
|
906
908
|
lang: initialState.lang,
|
|
909
|
+
countryCode: initialState.countryCode,
|
|
907
910
|
failedToTranslate: initialState.failedToTranslate,
|
|
908
911
|
}
|
|
909
912
|
await setTaskStateField(stateToSave);
|