Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

make the html lang attribute dynamic in CP #3053

Merged
merged 1 commit into from
Jul 2, 2018

Conversation

watarutmnh
Copy link
Contributor

@watarutmnh watarutmnh commented Jul 2, 2018

While my client using a browser plugin to translate the page, the content automatically translated in entry edit pages.
I found out the html lang attribute has been fixed to "en-US" and it cause the problem.

lang="{{ craft.app.language }}"

that follows the locale admin user set in their preferences page.

@brandonkelly brandonkelly merged commit 94fe1c8 into craftcms:develop Jul 2, 2018
brandonkelly added a commit that referenced this pull request Jul 2, 2018
watarutmnh added a commit to watarutmnh/cms that referenced this pull request Jul 4, 2018
Fixed a bug where the `<html lang>` attribute was hard-set to `en-US` rather than the current application language. (Refer: craftcms#3053)
@watarutmnh watarutmnh mentioned this pull request Jul 4, 2018
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants