Skip to content

Support more languages #201

Description

@majoer

Description

FetchApplicationTexts only fetches nb, nn and en languages as of now. This means the adapter ignores other languages, even if users add them via studio.

Blocked:
We lack a way to determine which languages the application supports. We don't want to send 1 GET request for each language for each app, just to check if it's set.

Suggestion 1:
We can use application metadata to check which lanugages the application title has and assume these are all languages for this application. This solution requires no additional api-calls.

Blocked: Suggestion is also blocked because studio only adds nb, nn and en to the title, regardless of what language files exist under /App/config/texts. We would need Studio to either:

  1. Unify application metadata title languages with the language files present, or
  2. Add a new metadata field that reflects what language files are present

Suggestion 2:
A new endpoint in storage to tell us which languages are supported for each app. e.g.
/storage/api/v1/applications/:org/:app/supported-languages

Additional Information

No response

Tasks

No response

Acceptance Criterias

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    status/draftStatus: When you create an issue before you have enough info to properly describe the issue.

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    Product Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions