Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI: Transloco configuration is missing a fallback language #305

Merged
merged 1 commit into from
Nov 29, 2023

Conversation

votdev
Copy link
Contributor

@votdev votdev commented Nov 29, 2023

The solution to fix that is issue is to return an empty translation list in case of an error. In this way, Transloco will not translate anything (the UI will be in english), but it will not fail either.

Fixes: https://github.com/aquarist-labs/s3gw/issues/846

@votdev votdev added kind/bug Something isn't working area/ui User Interface labels Nov 29, 2023
@votdev votdev added this to the v0.24.0 milestone Nov 29, 2023
@votdev votdev self-assigned this Nov 29, 2023
Copy link

codecov bot commented Nov 29, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (1eeb0f3) 98.85% compared to head (24a56d1) 98.85%.

❗ Current head 24a56d1 differs from pull request most recent head c1ff07a. Consider uploading reports for the commit c1ff07a to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #305   +/-   ##
=======================================
  Coverage   98.85%   98.85%           
=======================================
  Files          15       15           
  Lines        1047     1047           
=======================================
  Hits         1035     1035           
  Misses         12       12           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

The solution to fix that is issue is to return an empty translation list in case of an error. In this way, Transloco will not translate anything (the UI will be in english), but it will not fail either.

Fixes: https://github.com/aquarist-labs/s3gw/issues/846

Signed-off-by: Volker Theile <[email protected]>
@votdev votdev force-pushed the issue_846_transloco_fallback_language branch from 24a56d1 to c1ff07a Compare November 29, 2023 10:00
@votdev votdev merged commit dbf476e into s3gw-tech:main Nov 29, 2023
6 checks passed
@votdev votdev deleted the issue_846_transloco_fallback_language branch November 29, 2023 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ui User Interface kind/bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

UI: Transloco configuration is missing a fallback language
1 participant