mirror of https://github.com/boxyhq/jackson.git
updated deployment
This commit is contained in:
parent
99e9cdaaca
commit
8ce070d6c7
|
@ -0,0 +1,23 @@
|
|||
const allValues = {};
|
||||
|
||||
const localeFile = require('./locales/en/common.json');
|
||||
|
||||
for (const [key, value] of Object.entries(localeFile)) {
|
||||
const arr = allValues[value] || [];
|
||||
allValues[value] = arr.concat(key);
|
||||
}
|
||||
|
||||
const dupValues = {};
|
||||
|
||||
for (const [key, value] of Object.entries(allValues)) {
|
||||
if (value.length > 1) {
|
||||
dupValues[key] = value;
|
||||
}
|
||||
}
|
||||
|
||||
if (Object.keys(dupValues).length) {
|
||||
console.error(`Duplicate values found in locale file: ${Object.keys(dupValues).length}`);
|
||||
for (const [key, value] of Object.entries(dupValues)) {
|
||||
console.error(`${value}: ${key}`);
|
||||
}
|
||||
}
|
|
@ -12,4 +12,4 @@ patches:
|
|||
|
||||
images:
|
||||
- name: boxyhq/jackson
|
||||
newTag: 1.21.3
|
||||
newTag: 1.21.4
|
||||
|
|
|
@ -12,4 +12,4 @@ patches:
|
|||
|
||||
images:
|
||||
- name: boxyhq/jackson
|
||||
newTag: 1.21.3
|
||||
newTag: 1.21.4
|
||||
|
|
Loading…
Reference in New Issue