Skip to content

Localize all hardcoded strings in OpenAI-Compatible provider UI #607

Closed

Description

@haiphucnguyen

Summary

The OpenAI-Compatible provider setup flow — including all predefined templates
(OpenRouter, Together AI, Groq, Cloudflare AI, NVIDIA NIM) and the custom server
path — contains hardcoded English strings that are not covered by the i18n system.
These need to be extracted into locale resource files so they can be translated.

Scope

OpenAiCompatibleTemplate enum

Each template entry has two string fields that are currently hardcoded English:

  • tagline — one-sentence value proposition shown in the provider picker detail panel
  • helpText — multi-line setup instructions shown in the CONFIG step info card

All 5 templates are affected:

  • CLOUDFLARE_AI
  • GROQ
  • NVIDIA_NIM
  • OPENROUTER
  • TOGETHER_AI

UI components using these strings

Any composable that renders template.tagline or template.helpText directly
should switch to stringResource(key) calls.

Activity

  1. added
    help wanted
    good first issue
    on Aug 6, 2026
  2. DenisFrolkov commented on Aug 9, 2026

    @DenisFrolkov
    Contributor

    Hi! I'd like to try this issue - it'd be my first open source PR.
    One thing I noticed while reading the code: helpText isn't rendered anywhere in the UI right now (the enum's doc comment mentions a "CONFIG step info card", but OpenAiCompatibleSettings.getConfigFields() doesn't add one - e.g. via InfoField, like LmStudioSettings does). Should that be part of this issue, or a separate follow-up?

  3. haiphucnguyen commented on Aug 9, 2026

    @haiphucnguyen
    CollaboratorAuthor

    Thank you @DenisFrolkov . Assigned it to you.

    I has wired up the helpText to the provider config

    Image

    The tagline, and helpText are wired up to the ProviderSelectionDialog
    https://github.com/askimo-ai/askimo/blob/main/desktop/src/main/kotlin/io/askimo/desktop/settings/ProviderSelectionDialog.kt#L470-L506 and they are need to be localized.

    These texts are the guidelines only so it should not in the config info fields. Also we do not need to do with LmStudio (which I think we can do simpler now) using the messageResolver callback.

    1. We need to change the text by using the localized key, for instance
    GROQ(
        taglineKey = "provider.template.groq.tagline",
        helpTextKey = "provider.template.groq.help",
        ...
    )
    
    1. Update texts in messages.properties
    provider.template.groq.tagline=Ultra-fast inference for open-source models — Llama, Mixtral, Gemma and more.
    provider.template.groq.help=...
    

    We use Google translates to translate all texts to other languages. For me I use the Askimo with the custom directive to help me translating keys

    Image

    You can use this system prompt

    Translate the English content below into the following languages: de, es, fr, ja, ko, pt, vi, zh, zh_TW
    Rules:
    Translate with the highest quality — do not skip, omit, or shorten any keys or values
    Keep all keys (left side of :) unchanged — translate only the string values (right side)
    Keep all comments (lines starting with //) in English, unchanged
    Preserve all punctuation, quotes, commas, brackets, and whitespace exactly as in the original
    Preserve all non-translatable terms as-is: brand names (Askimo, ChatGPT, Claude, Gemini, Ollama, Grok, RAG, MCP, PDF, CLI, YAML, etc.), URLs, icon strings (emoji), and property names
    Output each language in its own separate fenced code block (```)
    Before each block, write a heading: ### Language Name (code) — e.g. ### German (de)
    The output structure inside each block must be character-for-character identical to the original format — same indentation, same quotes style, same line breaks, same trailing commas
    
    1. ProviderSelectionDialog.kt

    Update the two Text calls in providerPickerDetail to use stringResource() instead of the raw field value:

    // Before:
    Text(text = entry.template.tagline, ...)
    Text(text = entry.template.helpText, ...)
    
    // After:
    Text(text = stringResource(entry.template.taglineKey), ...)
    Text(text = stringResource(entry.template.helpTextKey), ...)
    

    I am looking forward to your PR :).

  4. added a commit that references this issue on Aug 10, 2026
    6652190
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

good first issuehelp wanted

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions