-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Feat/poc translate by json - POC - NOT MERGE #1738
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
Feat/poc translate by json - POC - NOT MERGE #1738
Conversation
…in-menu-getting-started
✅ Deploy Preview for expressjscom-preview ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for expressjscom-preview ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@bjohansebas @chrisdel101 ref: #1736 |
This reverts commit 96eb526.
This reverts commit 1e9e237.
…sstenzel/expressjs.com into feat/poc-translate-by-json
BTW, the change of the tool is not only for i18n, it is also to avoid having to focus too much on design/accessibility. Thanks for creating this POC, the way it's working would create layout shifts, which is a bad user experience and Google could/may penalize us for that. |
Translation test using JSON, instead of copying files to translate.
modifeld files
_includes/head.html
_includes/header/header.html
_layouts/page.html
assets/js/translations.js
i18n/header.json
i18n/home.json
index.md
Test pages:
header - menu - item (home)
https://deploy-preview-1738--expressjscom-preview.netlify.app/en/starter/installing
https://deploy-preview-1738--expressjscom-preview.netlify.app/pt-br/starter/installing
description only home in EN