Skip to content

Commit 7c7474d

Browse files
authored
Merge pull request #162 from TNG/AIStringTranslation
Add missing translation keys and provide initial translation
2 parents 8d7bada + 9dcf543 commit 7c7474d

26 files changed

+1973
-1082
lines changed

WebUI/.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
src/auto-import.d.ts

WebUI/src/App.vue

+6-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,11 @@
5353
v-show="globalSetup.loadingState === 'verifyBackend'"
5454
class="flex-auto flex items-center justify-center"
5555
>
56-
<loading-bar :text="'Verifying backends'" class="w-3/5" style="word-spacing: 8px"></loading-bar>
56+
<loading-bar
57+
:text="languages.LOADING_VERIFYING_BACKENDS"
58+
class="w-3/5"
59+
style="word-spacing: 8px"
60+
></loading-bar>
5761
</main>
5862
<main
5963
v-show="globalSetup.loadingState === 'manageInstallations'"
@@ -68,7 +72,7 @@
6872
class="flex-auto flex items-center justify-center"
6973
>
7074
<loading-bar
71-
:text="'AI Playground Loading'"
75+
:text="languages.LOADING_AI_PLAYGROUND_LOADING"
7276
class="w-3/5"
7377
style="word-spacing: 8px"
7478
></loading-bar>

WebUI/src/assets/css/main.css

+1-2
Original file line numberDiff line numberDiff line change
@@ -332,12 +332,11 @@ textarea {
332332
z-index: 99;
333333

334334
.panel-tab {
335+
padding: 3px;
335336
width: 110px;
336-
height: 30px;
337337
font-size: 14px;
338338
border-radius: 8px;
339339
border: 1px solid rgba(255, 255, 255, 0.2);
340-
line-height: 30px;
341340

342341
&.active {
343342
background-color: #26272c;

WebUI/src/assets/i18n/de.json

+110-94
Large diffs are not rendered by default.

WebUI/src/assets/i18n/en-US.json

+30-14
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"COM_RESTART": "Restart",
2424
"COM_START": "Start",
2525
"COM_DELETE": "Delete",
26+
"COM_LOAD_IMAGE": "Load Image",
2627
"COM_DOWNLOAD_MODEL": "Downloading model",
2728
"COM_DOWNLOAD_SPEED": "Download speed",
2829
"COM_LOADING_MODEL": "Loading AI Model",
@@ -35,7 +36,7 @@
3536
"COM_DEFAULT": "Default",
3637
"COM_STOP": "Stop",
3738
"COM_DEBUG": "Open Developer Logs",
38-
"COM_OPEN_LOCATION": "Open Location",
39+
"COM_OPEN_LOCATION": "Open in Folder",
3940
"COM_OPEN_PARAMS": "Parameters Info",
4041
"COM_LOW": "low",
4142
"COM_HIGH": "high",
@@ -46,6 +47,9 @@
4647
"COM_INSTALL_ALL": "Install/Repair all selected",
4748
"COM_REPAIR": "Repair",
4849
"COM_CONTINUE": "Continue",
50+
"COM_GO_TO_SETUP": "Go to Setup",
51+
"COM_LOAD_WORKFLOW_DEFAULTS": "Load workflow defaults",
52+
"SETTINGS_THEME": "Theme",
4953
"SETTINGS_MODEL_IMAGE_RESOLUTION_HD_CONFIRM": "HD Mode can result in slower than normal performance on systems with less than 12 GB of VRAM or 24GB of system memory for Intel Core Ultra PCs",
5054
"SETTINGS_MODEL_WORKFLOW_COMFYUI_CONFIRM": "The use of the workflow mode requires ComfyUI to be installed. This is an optional component that can be installed in the AI Playground Setup.",
5155
"SETTINGS_MODEL_WORKFLOW_COMFYUI_DOWNLOADING": "Installation in progress...",
@@ -58,7 +62,7 @@
5862
"SETTINGS_LLM_BACKEND": "LLM Backend",
5963
"SETTINGS_MODEL_IMAGE_SIZE": "Image Size",
6064
"SETTINGS_MODEL_IMAGE_RESOLUTION": "Image Resolution",
61-
"SETTINGS_MODEL_IMAGE_RESOLUTION_STRANDARD": "Standard",
65+
"SETTINGS_MODEL_IMAGE_RESOLUTION_STANDARD": "Standard",
6266
"SETTINGS_MODEL_IMAGE_RESOLUTION_HD": "HD",
6367
"SETTINGS_MODEL_QUALITY": "Generate Quality",
6468
"SETTINGS_MODEL_QUALITY_STANDARD": "Standard",
@@ -72,7 +76,7 @@
7276
"SETTINGS_MODEL_GENERATE_NUMBER": "Generate Image Number",
7377
"SETTINGS_MODEL_LLM_MODEL": "Large Language Model",
7478
"SETTINGS_MODEL_IMAGE_PREVIEW": "Image Preview",
75-
"SETTINGS_MODEL_SAFE_CHECK": "Safe Check(Effect only on SD 1.5)",
79+
"SETTINGS_MODEL_SAFE_CHECK": "Safe Check",
7680
"SETTINGS_MODEL_IMAGE_MODEL": "Image Model",
7781
"SETTINGS_MODEL_INPAINT_MODEL": "Inpaint/Outpaint Model",
7882
"SETTINGS_MODEL_IMAGE_WIDTH": "Width",
@@ -100,7 +104,7 @@
100104
"SETTINGS_MODEL_SD_STANDARD_MODEL": "Standard Default Model",
101105
"SETTINGS_MODEL_SD_STANDARD_INPAINT_MODEL": "Standard Default Inpaint/OutPaint Model",
102106
"SETTINGS_MODEL_SD_HD_MODEL": "HD Default Model",
103-
"SETTINGS_MODEL_RAG_MODEL": "Rag Query Model",
107+
"SETTINGS_MODEL_RAG_MODEL": "RAG Query Model",
104108
"SETTINGS_BACKEND_STATUS": "Backend Status",
105109
"SETTINGS_MODEL_MANAGE_BACKEND": "Manage Backend Components",
106110
"SETTINGS_MODEL_EXIST": "The model already exist. Repeating the download is unnecessary.",
@@ -110,7 +114,7 @@
110114
"TAB_ENHANCE": "Enhance",
111115
"TAB_ANSWER": "Answer",
112116
"TAB_LEARN_MORE": "Learn More",
113-
"ENHANCE_INPUT_IMAGE_REQUIRED": "Please set input image before generate",
117+
"ENHANCE_INPUT_IMAGE_REQUIRED": "Please set input image before generating",
114118
"ENHANCE_UPSCALE": "Upscale",
115119
"ENHANCE_IMAGE_PROMPT": "Image Prompt",
116120
"ENHANCE_INPAINT": "Inpaint",
@@ -125,19 +129,20 @@
125129
"ENHANCE_INPAINT_TYPE": "Type",
126130
"ENHANCE_INPAINT_FILL": "Fill With Something New",
127131
"ENHANCE_INPAINT_FIX": "Fix and Repair Masked Area",
128-
"ENHANCE_INPAINT_MASK_REQUIRED": "Please draw inpaint mask before generate",
132+
"ENHANCE_INPAINT_MASK_REQUIRED": "Please draw the inpaint mask before generating",
129133
"ENHANCE_INPAINT_USE_IMAGE_MODEL": "Use Current Image Model",
130-
"ENHANCE_COM_DENOISE": "Influence",
134+
"ENHANCE_COM_DENOISE": "Denoise Strength",
131135
"ENHANCE_OUTPAINT_DIRECTION": "Direction",
132136
"ENHANCE_PREVIEW_BEFORE_PROCESS": "Before Process",
133137
"ENHANCE_PREVIEW_AFTER_PROCESS": "After Process",
134-
"ENHANCE_IMAGE_PROMPT_TIP": "Describe how you want the image to be stylized. Include descriptions of the original image you want to keep and descriptions of what you want to be different. Adjust the influence slider to increase or decrease the how much influence your prompt has in the outcome",
135-
"ENHANCE_INPAINT_TIP": "Use the pen tool to mask an area. Describe in the prompt what you want to Fix or Fill. Select the Fix or Fill option, then adjust the level of influence the prompt has",
136-
"ENHANCE_OUTPAINT_TIP": "Select the direction you want to expand, adjust the value of denoise if necessary, and enter a prompt word in the text box. The expanded image will be generated",
137-
"ENHANCE_UPSCALE_TIP": "Upload the image that needs to be manipulated, select the amplification factor, adjust the amplitude of denoise (if less than 0.1, the image content will not change, but the size will still upsacle), enter the prompt word in the text box to generate the enlarged image",
138+
"ENHANCE_IMAGE_PROMPT_TIP": "Describe how you want the image to be stylized. Include descriptions of the original image you want to keep and descriptions of what you want to be different. Adjust the denoise slider to increase or decrease the how much influence your prompt has in the outcome",
139+
"ENHANCE_INPAINT_TIP": "Use the pen tool to mask an area. Describe in the prompt what you want to fix or fill. Select the fix or fill option, then adjust the level of influence the prompt has",
140+
"ENHANCE_OUTPAINT_TIP": "Select the direction you want to expand, adjust the strength of the denoise if necessary, and enter a prompt word in the text box. The expanded image will be generated",
141+
"ENHANCE_UPSCALE_TIP": "Upload the image that needs to be manipulated, select the amplification factor, adjust the denoise strength (if less than 0.1, the image content will not change, but the size will still upsacle), enter the prompt word in the text box to generate the enlarged image",
138142
"ERROR_UNSUPPORTED_IMAGE_TYPE": "Only supports PNG, JPG, GIF, and BMP image formats",
139143
"ANSWER_USER_NAME": "You",
140144
"ANSWER_AI_NAME": "Playground",
145+
"ANSWER_NEW_CONVERSATION": "New Conversation",
141146
"ANSWER_ERROR_NOT_PROMPT": "Please input prompt",
142147
"ANSWER_ERROR_CLEAR_SESSION": "Clear Chat History",
143148
"INCREASE_FONT_SIZE": "Enlarge Text",
@@ -189,7 +194,7 @@
189194
"ERR_NOT_ENOUGH_DISK_SPACE": "Not enough disk space. It requires {requires_space}, but only {free_space} of free space is available",
190195
"ERR_DOWNLOAD_FAILED": "Download model file failed",
191196
"ERROR_RUNTIME_ERROR": "If a critical failure occurs, please restart the program and try again",
192-
"ERROR_GENERATE_UNKONW_EXCEPTION": "An unknown error occurred. failed to generate from model",
197+
"ERROR_GENERATE_UNKONW_EXCEPTION": "An unknown error occurred. Failed to generate from model",
193198
"ERROR_FOLDER_NOT_EXISTS": "The specified directory does not exist",
194199
"ERROR_REPO_NOT_EXISTS": "The specified repository-ID could not be found",
195200
"ERROR_ALREADY_IN_MODELS": "The specified model is already in the list",
@@ -212,7 +217,7 @@
212217
"BACKEND_REQUIRED": "Required",
213218
"BACKEND_OPTIONAL": "Optional",
214219
"BACKEND_REQUIRED_COMPONENTS_MESSAGE": "Before you can use the Intel AI Playground, we need to download some additional components. Please make sure you have a stable and unmetered internet connection.",
215-
"BACKEND_OPTIONAL_COMPONENTS_MESSAGE": "Optional components are not required for AI-Playground to work, but provide alternative functions. If you want to use them please click the info buttons to familiarize yourself with their terms and conditions before activating them.",
220+
"BACKEND_OPTIONAL_COMPONENTS_MESSAGE": "Optional components are not required for AI Playground to work, but provide alternative functions. If you want to use them please click the info buttons to familiarize yourself with their terms and conditions before activating them.",
216221
"BACKEND_TERMS_AND_CONDITIONS": "* I have reviewed the optional component. I agree to all terms and conditions and would like to download and enable third-party software if applicable.",
217222
"BACKEND_STATUS_RUNNING": "Running",
218223
"BACKEND_STATUS_STOPPING": "Stopping",
@@ -223,8 +228,19 @@
223228
"BACKEND_STATUS_FAILED": "Failed",
224229
"SETTINGS_IMAGE_MODE": "Mode",
225230
"SETTINGS_IMAGE_WORKFLOW": "Workflow",
231+
"SETTINGS_IMAGE_DEFAULT": "Default",
232+
"SETTINGS_IMAGE_COMFY_REFERENCE_IMAGE": "Reference Image",
233+
"SETTINGS_IMAGE_COMFY_FILENAME_PREFIX": "Filename Prefix",
234+
"SETTINGS_IMAGE_COMFY_CANNY_LOW_THRESHOLD": "Canny - Low Threshold",
235+
"SETTINGS_IMAGE_COMFY_CANNY_HIGH_THRESHOLD": "Canny - High Threshold",
236+
"SETTINGS_IMAGE_COMFY_ACTIVATE_FACESWAP": "Activate FaceSwap",
237+
"SETTINGS_IMAGE_COMFY_ORIGINAL_IMAGE": "Original Image",
238+
"SETTINGS_IMAGE_COMFY_CONTROLNET_STRENGTH": "ControlNet - Strength",
239+
"SETTINGS_IMAGE_COMFY_NEW_FACE_IMAGE": "New Face Image",
226240
"WORKFLOW_RELOAD_INFO": "Reload workflows from disk.",
227241
"WORKFLOW_DOWNLOAD_INFO": "Download latest workflows and back up existing workflows.",
228242
"WORKFLOW_HIGH_VRAM_INFO": "This model requires a lot of VRAM. Reduce the resolution and/or restart the ComfyUI backend when in case you experience a poor performance.",
229-
"WORKFLOW_HIGH_VRAM_WARNING": "high VRAM required"
243+
"WORKFLOW_HIGH_VRAM_WARNING": "high VRAM required",
244+
"LOADING_VERIFYING_BACKENDS": "Verifying backends",
245+
"LOADING_AI_PLAYGROUND_LOADING": "AI Playground Loading"
230246
}

0 commit comments

Comments
 (0)