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

Fix i18n issue + Include lang in url #122

Merged
merged 5 commits into from
Nov 11, 2019
Merged

Fix i18n issue + Include lang in url #122

merged 5 commits into from
Nov 11, 2019

Conversation

wingkwong
Copy link
Member

  • Please check if the PR fulfills these requirements
  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • i18n translation has been added / updated (for bug fixes / features)
  • What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
    Bug fix

  • What is the current behavior? (You can also link to an open issue here)

  1. i18n issue
    /en shows en version
    /en/ shows tc version
    some values r not showing right

  2. include lang in url
    originally the path s hardcoded without any lang
    if i18n lang s zh, the link will redirect to en
    so use getCurrentLanguage() to get the current language n include it in the link

@wingkwong wingkwong requested a review from cswbrian November 11, 2019 05:02
@cswbrian cswbrian merged commit 5c4f6aa into vote4hk:dev Nov 11, 2019
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

Successfully merging this pull request may close these issues.

2 participants