8000 Fix i18n in subfolder environment by peccu · Pull Request #3772 · RocketChat/Rocket.Chat · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix i18n in subfolder environment #3772

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

Merged

Conversation

peccu
Copy link
Contributor
@peccu peccu commented Jul 14, 2016

@RocketChat/core

If Rocket.Chat is running in subfolder environment(ex: ROOT_URL is set to https://domain/chat), i18n is not working.

In spite of ROOT_URL is set to https://domain/chat, TAPi18n fetches /tap-i18n/*.json.
It should fetch /chat/tap-i18n/*.json.
Then, 404 error has occurred.
(this screenshot is produced with ROOT_URL=http://localhost:3000/test meteor)

tap-i18n-not-found

If TAPi18n.conf.cdn_path or TAPi18n.conf.i18n_files_route is not set, TAPi18n fetches /tap-i18n (maps to packages/rocketchat-lib/i18n directory).

Please review. Is this correct implementation?

If this is not set, TAPi18n fetches `/tap-i18n` (maps to packages/rocketchat-lib/i18n directory).
It should fetch `/subfolder/tap-i18n`.
@engelgabriel engelgabriel added this to the 0.36.0 milestone Jul 14, 2016
@rodrigok rodrigok merged commit af355e8 into RocketChat:develop Aug 3, 2016
@peccu peccu deleted the feature/fix_i18n_for_subfolder_deploy branch August 3, 2016 03:10
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.

3 participants
0