RED-7497: Fixed de translation file
This commit is contained in:
parent
3d3e889047
commit
5ce9417072
File diff suppressed because it is too large
Load Diff
@ -1,7 +1,7 @@
|
||||
{
|
||||
"accept-recommendation-dialog": {
|
||||
"header": {
|
||||
"add-to-dictionary": "Add to dictionary (changed)",
|
||||
"add-to-dictionary": "Add to dictionary",
|
||||
"request-add-to-dictionary": "Request add to dictionary"
|
||||
},
|
||||
"multiple-values": "Multiple recommendations selected"
|
||||
@ -2509,4 +2509,4 @@
|
||||
}
|
||||
},
|
||||
"yesterday": "Yesterday"
|
||||
}
|
||||
}
|
||||
|
||||
@ -19,15 +19,15 @@ export async function getFileId(projectId: string): Promise<string> {
|
||||
return files.find(file => file.name === FILENAME)!.id;
|
||||
}
|
||||
|
||||
export async function uploadEn(projectId: string): Promise<void> {
|
||||
const enFile = (await import('./../../../apps/red-ui/src/assets/i18n/redact/en.json')).default;
|
||||
export async function uploadLocal(projectId: string, lang: 'en' | 'de'): Promise<void> {
|
||||
const langFile = (await import(`./../../../apps/red-ui/src/assets/i18n/redact/${lang}.json`)).default;
|
||||
|
||||
await api.import({
|
||||
projectId,
|
||||
files: [
|
||||
{
|
||||
name: FILENAME,
|
||||
content: { type: 'json', features: ['plural_icu', 'filter_untranslated'], en: enFile },
|
||||
content: { type: 'json', features: ['plural_icu', 'filter_untranslated'], [lang]: langFile },
|
||||
},
|
||||
],
|
||||
deprecate: 'project',
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import { downloadLanguage, getFileId, getProjectId, listKeys, updateLocalDe, updateLocalEn, uploadEn } from './functions';
|
||||
import { downloadLanguage, getFileId, getProjectId, listKeys, updateLocalDe, updateLocalEn, uploadLocal } from './functions';
|
||||
|
||||
async function execute() {
|
||||
const projectId = await getProjectId();
|
||||
@ -9,7 +9,7 @@ async function execute() {
|
||||
await updateLocalEn(remoteKeys);
|
||||
|
||||
/** Upload local en (source) file in order to add new keys and deprecate unused keys. */
|
||||
await uploadEn(projectId);
|
||||
await uploadLocal(projectId, 'en');
|
||||
|
||||
/** Download updated de file. */
|
||||
await updateLocalDe(projectId, fileId);
|
||||
@ -17,7 +17,7 @@ async function execute() {
|
||||
|
||||
async function uploadLocals() {
|
||||
const projectId = await getProjectId();
|
||||
await uploadEn(projectId);
|
||||
await uploadLocal(projectId, 'de');
|
||||
}
|
||||
|
||||
async function downloadDe() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user