Skip to content

Commit 86757ee

Browse files
author
FalkWolsky
committed
Fixed Language Files and Merge preparation
1 parent 909a030 commit 86757ee

File tree

8 files changed

+15
-10
lines changed

8 files changed

+15
-10
lines changed

client/packages/lowcoder/src/i18n/locales/de.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3383,11 +3383,13 @@ export const de = {
33833383
"pleaseSelectCity": "Bitte wähle eine Stadt",
33843384
"advanced": "Fortgeschrittene",
33853385
"showClearIcon": "Löschen-Symbol anzeigen",
3386+
/* eslint-disable only-ascii/only-ascii */
33863387
"appleOptionLabel": "🍎 Apfel",
33873388
"waterMelonOptionLabel": "🍉 Wassermelone",
33883389
"berryOptionLabel": "🍓 Erdbeere",
33893390
"lemonOptionLabel": "🍋 Zitrone",
33903391
"coconutOptionLabel": "🥥 Kokosnuss",
3392+
/* eslint-enable only-ascii/only-ascii */
33913393
"likedFruits": "Favoriten",
33923394
"option": "Option",
33933395
"singleFileUpload": "Einzelner Datei-Upload",

client/packages/lowcoder/src/i18n/locales/es.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3383,11 +3383,13 @@ export const es = {
33833383
"pleaseSelectCity": "Seleccione una ciudad",
33843384
"advanced": "Avanzado",
33853385
"showClearIcon": "Mostrar icono de borrado",
3386+
/* eslint-disable only-ascii/only-ascii */
33863387
"appleOptionLabel": "🍎 Manzana",
33873388
"waterMelonOptionLabel": "🍉 Sandía",
33883389
"berryOptionLabel": "🍓 Fresa",
33893390
"lemonOptionLabel": "🍋 Limón",
33903391
"coconutOptionLabel": "🥥 Coco",
3392+
/* eslint-enable only-ascii/only-ascii */
33913393
"likedFruits": "Favoritos",
33923394
"option": "Opción",
33933395
"singleFileUpload": "Carga de un solo archivo",

client/packages/lowcoder/src/i18n/locales/it.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3383,11 +3383,13 @@ export const it = {
33833383
"pleaseSelectCity": "Selezionare una città",
33843384
"advanced": "Avanzato",
33853385
"showClearIcon": "Mostra l'icona Cancella",
3386+
/* eslint-disable only-ascii/only-ascii */
33863387
"appleOptionLabel": "🍎 Mela",
33873388
"waterMelonOptionLabel": "🍉 Anguria",
33883389
"berryOptionLabel": "🍓 Fragola",
33893390
"lemonOptionLabel": "🍋 Limone",
33903391
"coconutOptionLabel": "🥥 Noce di cocco",
3392+
/* eslint-enable only-ascii/only-ascii */
33913393
"likedFruits": "Preferiti",
33923394
"option": "Opzione",
33933395
"singleFileUpload": "Caricamento di un singolo file",

client/packages/lowcoder/src/i18n/locales/pt.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3383,11 +3383,13 @@ export const pt = {
33833383
"pleaseSelectCity": "Por favor, selecione uma cidade",
33843384
"advanced": "Avançado",
33853385
"showClearIcon": "Mostrar Ícone Limpar",
3386+
/* eslint-disable only-ascii/only-ascii */
33863387
"appleOptionLabel": "🍎 Maçã",
33873388
"waterMelonOptionLabel": "🍉 Melancia",
33883389
"berryOptionLabel": "🍓 Morango",
33893390
"lemonOptionLabel": "🍋 Limão",
33903391
"coconutOptionLabel": "🥥 Coco",
3392+
/* eslint-enable only-ascii/only-ascii */
33913393
"likedFruits": "Favoritos",
33923394
"option": "Opção",
33933395
"singleFileUpload": "Upload de Arquivo Único",

client/packages/lowcoder/src/i18n/locales/ru.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3383,12 +3383,14 @@ export const ru = {
33833383
"pleaseSelectCity": "Пожалуйста, выберите город",
33843384
"advanced": "Расширенный",
33853385
"showClearIcon": "Показать значок очистки",
3386+
/* eslint-disable only-ascii/only-ascii */
33863387
"appleOptionLabel": "🍎 Apple",
33873388
"waterMelonOptionLabel": "🍉 Арбуз",
33883389
"berryOptionLabel": "🍓 Клубника",
33893390
"lemonOptionLabel": "🍋 Лимон",
33903391
"coconutOptionLabel": "🥥 Кокосовый орех",
33913392
"likedFruits": "Избранное",
3393+
/* eslint-enable only-ascii/only-ascii */
33923394
"option": "Вариант",
33933395
"singleFileUpload": "Загрузка одного файла",
33943396
"multiFileUpload": "Многократная загрузка файлов",

client/packages/lowcoder/src/pages/ApplicationV2/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ export default function ApplicationHome() {
296296
],
297297
} : { items: [] },
298298

299-
supportSubscription ? {
299+
/* supportSubscription ? {
300300
items: [
301301
{
302302
text: <TabLabel>{trans("home.support")}</TabLabel>,
@@ -306,7 +306,7 @@ export default function ApplicationHome() {
306306
icon: ({ selected, ...otherProps }) => selected ? <SupportIcon {...otherProps} width={"24px"}/> : <SupportIcon {...otherProps} width={"24px"}/>,
307307
},
308308
],
309-
} : { items: [] },
309+
} : { items: [] }, */
310310

311311
{
312312
items: [

client/packages/lowcoder/src/pages/setting/settingHome.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,6 @@ export function SettingHome() {
129129
!currentOrgAdmin(user) ||
130130
!enableCustomBrand(config) ||
131131
(!isSelfDomain(config) && !isEnterpriseMode(config)),
132-
},
133-
{
134-
key: SettingPageEnum.Subscription,
135-
label: trans("settings.subscription"),
136-
icon: <SubscriptionIcon width={"20px"}/>,
137132
}
138133
];
139134

translations/locales/translate.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,7 @@ const findMissingTranslations = async (enData, targetData, targetLang, deeplApiK
108108
};
109109

110110
// Main function to run the translation process
111-
const translateMissingKeys = async (targetLang, langFile) => {
112-
const deeplApiKey = ''; // Replace with your Deepl API key
111+
const translateMissingKeys = async (targetLang, langFile, deeplApiKey) => {
113112

114113
// Load the English and target language files
115114
const enModule = await loadLanguageFile('./en.js');
@@ -134,4 +133,5 @@ if (args.length < 2) {
134133

135134
const targetLang = args[0];
136135
const langFile = args[1];
137-
translateMissingKeys(targetLang, langFile);
136+
const deeplApiKey = args[2];
137+
translateMissingKeys(targetLang, langFile, deeplApiKey);

0 commit comments

Comments
 (0)