MCPcopy
hub / github.com/ResearAI/AutoFigure-Edit / applyInputLocale

Function applyInputLocale

web/app.js:1064–1122  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1062 setupChoiceGroup(imageProviderButtons, imageProviderInput);
1063
1064 function applyInputLocale() {
1065 setText("inputPageSubtitle", t("input.subtitle"));
1066 setText("importEntryBtn", t("input.import_entry"));
1067 setText("inputGuideBtn", t("input.guide_entry"));
1068 setText("methodTextLabel", t("input.method_label"));
1069 setPlaceholder("methodText", t("input.method_placeholder"));
1070 setText("methodHint", t("input.method_hint"));
1071 setText("pipelineRoutingLabel", t("input.pipeline_label"));
1072 setText("pipelineRoutingCaption", t("input.pipeline_caption"));
1073 setText("routeStep1Label", t("input.route_step1"));
1074 setText("routeStep4Label", t("input.route_step4"));
1075 setText("providerLabel", t("input.provider_label"));
1076 setText("providerCaption", t("input.provider_caption"));
1077 setText("providerGeminiTitle", t("providers.gemini"));
1078 setText("providerGeminiMeta", t("input.provider_gemini_meta"));
1079 setText("providerOpenAIResponsesTitle", t("providers.openai_response"));
1080 setText("providerOpenAIResponsesMeta", t("input.provider_openai_meta"));
1081 setText("providerOpenRouterTitle", t("providers.openrouter"));
1082 setText("providerOpenRouterMeta", t("input.provider_openrouter_meta"));
1083 setText("providerCustomTitle", t("providers.custom"));
1084 setText("providerCustomMeta", t("input.provider_custom_meta"));
1085 setText("svgModelLabel", t("input.svg_model_label"));
1086 setText("svgModelCaption", t("input.svg_model_caption"));
1087 setText("svgModelHint", t("input.svg_model_hint"));
1088 setText("imageProviderLabel", t("input.image_provider_label"));
1089 setText("imageProviderCaption", t("input.image_provider_caption"));
1090 setText("imageProviderSameLabel", t("providers.same_as_svg"));
1091 setText("imageProviderOpenAILabel", t("providers.openai_images"));
1092 setText("imageProviderGeminiLabel", t("providers.gemini"));
1093 setText("imageProviderOpenRouterLabel", t("providers.openrouter"));
1094 setText("imageProviderCustomLabel", t("providers.custom"));
1095 setText("imageModelLabel", t("input.image_model_label"));
1096 setText("imageModelCaption", t("input.image_model_caption"));
1097 setText("imageModelHint", t("input.image_model_hint"));
1098 setText("apiKeyLabel", t("input.api_key_label"));
1099 setText("apiKeyHint", t("input.api_key_hint"));
1100 setText("baseUrlLabel", t("input.base_url_label"));
1101 setText("baseUrlHint", t("input.base_url_hint"));
1102 setText("imageApiKeyLabel", t("input.image_api_key_label"));
1103 setPlaceholder("imageApiKey", t("input.image_api_key_placeholder"));
1104 setText("imageBaseUrlLabel", t("input.image_base_url_label"));
1105 setText("optimizeLabel", t("input.optimize_label"));
1106 setText("imageSizeLabel", t("input.image_size_label"));
1107 setText("upscaleLabel", t("input.upscale_label"));
1108 setText("upscaleText", t("input.upscale_text"));
1109 setText("samBackendLabel", t("input.sam_backend_label"));
1110 setText("samPromptLabel", t("input.sam_prompt_label"));
1111 setText("samApiKeyLabel", t("input.sam_api_key_label"));
1112 setPlaceholder("samApiKey", t("input.sam_api_key_placeholder"));
1113 setText("referenceImageLabel", t("input.reference_image_label"));
1114 setText("referenceUploadText", t("input.reference_upload_text"));
1115 if (!confirmBtn.disabled) {
1116 confirmBtn.textContent = t("input.confirm_btn");
1117 }
1118 if (uploadedReferencePath && referenceStatus) {
1119 referenceStatus.textContent = t("upload.reference_ready");
1120 }
1121 updateRouteSummary();

Callers

nothing calls this directly

Calls 4

setTextFunction · 0.85
tFunction · 0.85
setPlaceholderFunction · 0.85
updateRouteSummaryFunction · 0.85

Tested by

no test coverage detected