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

Add tags to keys #175

Open
resamsel opened this issue Jun 25, 2020 · 0 comments
Open

Add tags to keys #175

resamsel opened this issue Jun 25, 2020 · 0 comments

Comments

@resamsel
Copy link
Owner

When pushing or pulling translations, tags should be used to determine the scope of the operation. A mono-repo approach could lead to having several applications (i.e. backend, ui, admin-ui), which use different keys. Additionally, versioning can be done using this approach. Only relevant keys need to be pulled for a specific version. Tag management needs to be provided in the UI.

The config file translatr.yml should be enhanced to allow tagging.

translatr:
  ...
  pull:
    file_type: play_messages
    target: conf/messages.?{locale.name}
    tags: app:backend version:1.0.0
  push:
    file_type: play_messages
    target: conf/messages.?{locale.name}
    tags: app:backend version:1.0.0

When pushing, the related keys found in the targets should be tagged with the given tags (app:backend, version:1.0.0). When pulling, only keys with the given tags (app:backend, version:1.0.0) should be included.

@resamsel resamsel added this to the v3.1.0 milestone Jun 25, 2020
@resamsel resamsel modified the milestones: v3.1.0, v3.2.0 Nov 9, 2020
@resamsel resamsel removed this from the v3.2.0 milestone Jan 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant