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:
- Unify application metadata title languages with the language files present, or
- 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
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:
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