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

Incorporate i18n into UI elements #1471

Merged
merged 29 commits into from
Jun 14, 2021

Conversation

Still34
Copy link
Contributor

@Still34 Still34 commented Jun 2, 2021

Summary

This PR aims to incorporate the existing i18n implementation deeper into the UI elements, bringing i18n to the entire frontend. As a proof-of-concept, the zh-TW localization strings are also included in this PR.

To-do

Elements with i18n implemented:

  • Performer (incl. actions, bio, etc.)
  • Tags
  • Button actions
  • Modal dialogs
  • Settings
    • General
    • Interface
    • Tasks
    • DLNA
    • Tools
    • Scrapers
    • Plugins
    • Logs
    • About
  • Scenes (incl. editing)
  • Movies (incl. editing)
  • Markers

Resolves #566

@Still34 Still34 changed the title Implement i18n into UI elements Incorporate i18n into UI elements Jun 2, 2021
@Still34 Still34 force-pushed the i18n/impl-i18n-and-zh-tw branch 2 times, most recently from 6805d6a to e3db6af Compare June 3, 2021 16:28
@Still34 Still34 marked this pull request as ready for review June 5, 2021 15:02
@WithoutPants WithoutPants added this to the Version 0.8.0 milestone Jun 8, 2021
@WithoutPants WithoutPants added the feature Pull requests that add a new feature label Jun 8, 2021
Copy link
Collaborator

@WithoutPants WithoutPants left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MovieDetailsPanel is missing internationalisation.

Apart from the review comments, this appears to test ok.

ui/v2.5/src/locales/en-US.json Outdated Show resolved Hide resolved
ui/v2.5/src/utils/field.tsx Outdated Show resolved Hide resolved
ui/v2.5/src/utils/field.tsx Outdated Show resolved Hide resolved
ui/v2.5/src/utils/field.tsx Outdated Show resolved Hide resolved
ui/v2.5/src/utils/field.tsx Outdated Show resolved Hide resolved
@Still34 Still34 requested a review from WithoutPants June 8, 2021 12:18
@WithoutPants
Copy link
Collaborator

I've added the following to en-GB. This can be added to zh-TW json file in another PR:

"plugins": {
      "hooks": "Hooks",
      "triggers_on": "Triggers on"    
}

@WithoutPants WithoutPants merged commit 3ae187e into stashapp:develop Jun 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Pull requests that add a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature] Wrap all text in react-intl for localization
3 participants