Skip to content

Commit

Permalink
fix(gui): localize pipeline and controlnet menus
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Apr 13, 2023
1 parent 52d639f commit 953e772
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gui/src/components/control/ModelControl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export function ModelControl() {
/>
<QueryList
id='control'
labelKey='model'
labelKey='model.control'
name={t('modelType.control')}
query={{
result: models,
Expand Down
11 changes: 11 additions & 0 deletions gui/src/strings/de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ export const I18N_STRINGS_DE = {
top: 'Top',
bottom: 'Unterseite',
},
pipeline: '',
platform: 'Plattform',
prompt: 'Prompt',
scheduler: 'Planer',
Expand All @@ -138,6 +139,16 @@ export const I18N_STRINGS_DE = {
outscale: 'Ausgangsskala',
},
},
pipeline: {
'': '',
'controlnet': '',
'img2img': '',
'inpaint': '',
'lpw': '',
'pix2pix': '',
'txt2img': '',
'txt2txt': '',
},
setting: {
connectServer: 'verbinden zum Server',
history: 'Bildgeschichte',
Expand Down
20 changes: 20 additions & 0 deletions gui/src/strings/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,15 @@ export const I18N_STRINGS_EN = {
'diffusion-openjourney-v2': 'OpenJourney v2',
'diffusion-pastel-mix': 'Pastel Mix',
'diffusion-unstable-ink-dream-v6': 'Unstable Ink Dream v6',
// controlnets
'control': {
canny: 'Canny Edges',
depth: 'Depth Map',
hed: 'HED Edges',
normal: 'Surface Normals',
openpose: 'OpenPose',
scribble: 'Scribble',
},
},
modelType: {
control: 'ControlNet',
Expand Down Expand Up @@ -157,6 +166,7 @@ export const I18N_STRINGS_EN = {
top: 'Top',
bottom: 'Bottom',
},
pipeline: 'Pipeline',
platform: 'Platform',
prompt: 'Prompt',
scheduler: 'Scheduler',
Expand All @@ -179,6 +189,16 @@ export const I18N_STRINGS_EN = {
outscale: 'Outscale',
},
},
pipeline: {
'': 'Stable Diffusion',
'controlnet': 'ControlNet',
'img2img': 'Img2Img',
'inpaint': 'Inpaint',
'lpw': 'Long Prompt Weighting',
'pix2pix': 'Instruct Pix2Pix',
'txt2img': 'Txt2Img',
'txt2txt': 'Txt2Txt',
},
platform: {
amd: 'AMD GPU',
// eslint-disable-next-line id-blacklist
Expand Down
11 changes: 11 additions & 0 deletions gui/src/strings/es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ export const I18N_STRINGS_ES = {
top: 'Top',
bottom: 'Fondo',
},
pipeline: '',
platform: 'Plataforma de hardware',
prompt: 'Aviso',
scheduler: 'Planificador',
Expand All @@ -138,6 +139,16 @@ export const I18N_STRINGS_ES = {
outscale: 'Escala de producción',
},
},
pipeline: {
'': '',
'controlnet': '',
'img2img': '',
'inpaint': '',
'lpw': '',
'pix2pix': '',
'txt2img': '',
'txt2txt': '',
},
setting: {
connectServer: 'Conectar al servidor',
history: 'Historia de la imagen',
Expand Down
11 changes: 11 additions & 0 deletions gui/src/strings/fr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ export const I18N_STRINGS_FR = {
top: '',
bottom: '',
},
pipeline: '',
platform: '',
prompt: '',
scheduler: '',
Expand All @@ -138,6 +139,16 @@ export const I18N_STRINGS_FR = {
outscale: '',
},
},
pipeline: {
'': '',
'controlnet': '',
'img2img': '',
'inpaint': '',
'lpw': '',
'pix2pix': '',
'txt2img': '',
'txt2txt': '',
},
setting: {
connectServer: '',
history: '',
Expand Down

0 comments on commit 953e772

Please sign in to comment.