gtx-cli 2.5.15 → 2.5.16

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # gtx-cli
2
2
 
3
+ ## 2.5.16
4
+
5
+ ### Patch Changes
6
+
7
+ - [#843](https://github.com/generaltranslation/gt/pull/843) [`b135cbe`](https://github.com/generaltranslation/gt/commit/b135cbed44b259619697d9a429ba61c434bed7b5) Thanks [@fernando-aviles](https://github.com/fernando-aviles)! - Job polling correctly resolves locale aliases
8
+
3
9
  ## 2.5.15
4
10
 
5
11
  ### Patch Changes
@@ -47,18 +47,20 @@ export class PollTranslationJobsStep extends WorkflowStep {
47
47
  // branchId:fileId:versionId:locale -> job
48
48
  const jobMap = new Map();
49
49
  Object.entries(jobData.jobData).forEach(([jobId, job]) => {
50
- const key = `${job.branchId}:${job.fileId}:${job.versionId}:${job.targetLocale}`;
51
- jobMap.set(key, { ...job, jobId });
50
+ const jobLocale = this.gt.resolveAliasLocale(job.targetLocale);
51
+ const key = `${job.branchId}:${job.fileId}:${job.versionId}:${jobLocale}`;
52
+ jobMap.set(key, { ...job, jobId, targetLocale: jobLocale });
52
53
  });
53
54
  // Build a map of jobs for quick lookup:
54
55
  // jobId -> file data for the job
55
56
  const jobFileMap = new Map();
56
57
  Object.entries(jobData.jobData).forEach(([jobId, job]) => {
58
+ const jobLocale = this.gt.resolveAliasLocale(job.targetLocale);
57
59
  jobFileMap.set(jobId, {
58
60
  branchId: job.branchId,
59
61
  fileId: job.fileId,
60
62
  versionId: job.versionId,
61
- locale: job.targetLocale,
63
+ locale: jobLocale,
62
64
  });
63
65
  });
64
66
  // Categorize each file query item
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gtx-cli",
3
- "version": "2.5.15",
3
+ "version": "2.5.16",
4
4
  "main": "dist/index.js",
5
5
  "bin": "dist/main.js",
6
6
  "files": [