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

Naming issues when adding Category, Equipment or Muscle #1825

Open
rldaugherty opened this issue Nov 19, 2024 · 1 comment
Open

Naming issues when adding Category, Equipment or Muscle #1825

rldaugherty opened this issue Nov 19, 2024 · 1 comment

Comments

@rldaugherty
Copy link

rldaugherty commented Nov 19, 2024

Steps to Reproduce

  1. Adding any category, equipment or muscle through the administration area.
  2. Cleared cache through CLI.
  3. Cleared cache in browser.

Expected results:
Category, Equipment or Muscle appearing in the navigation

Actual results:
It appears that the name displayed correctly, but the "subcategory" is displayed incorrectly, highlighted below. Although the image below shows the "Category", the issue also appears from muscles and equipment.

Image

Image

@rolandgeider
Copy link
Member

hi! yes, this is an ugly result of the way translations are currently handled (the same would happen on the mobile app). At the moment the categories, muscles, etc, are more or less considered static and need to be extracted with a script so they can be translated by the react or the flutter apps.

I just looked and it seems we can check if the keys exists with i18n.exists("foo") so we could at least output the original string

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants