Skip to content
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.

Translation Epic TS1 - Manage the magic strings used for translation for routing #292

Open
6 tasks done
Tracked by #261
pratimasakinala opened this issue Mar 19, 2021 · 0 comments
Open
6 tasks done
Tracked by #261
Assignees
Labels
refactor Code changes underneath the hood; no difference in user experience

Comments

@pratimasakinala
Copy link
Collaborator

pratimasakinala commented Mar 19, 2021

Desired Use Case

Manage the magic strings like routing.admin in an Interface.

Actual/Current Behavior

There are a lot of hard-coded strings in the templates that are needed by transloco to perform translation on the property defined by these strings.

Steps to Implement This Feature

  • Create an interface for routing key from the JSON files.
  • Create an interface for the following first level of nested keys under routing in the language JSON files:
    • admin
    • app
    • content
    • user

Testing Steps

If you are not a member of this project, skip this step

  1. Open the site.
  2. Click on a routed link and verify that the page title is displayed properly.
  3. Change the language selection & verify that the above step is still valid.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
refactor Code changes underneath the hood; no difference in user experience
Projects
None yet
Development

No branches or pull requests

2 participants