Skip to content

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

Conversation

carlosstenzel
Copy link
Contributor

@carlosstenzel carlosstenzel commented Jan 23, 2025

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

Copy link

netlify bot commented Jan 23, 2025

Deploy Preview for expressjscom-preview ready!

Name Link
🔨 Latest commit 677372b
🔍 Latest deploy log https://app.netlify.com/sites/expressjscom-preview/deploys/6792304c3b976f0008d68c23
😎 Deploy Preview https://deploy-preview-1738--expressjscom-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Jan 23, 2025

Deploy Preview for expressjscom-preview ready!

Name Link
🔨 Latest commit 7a3cc0b
🔍 Latest deploy log https://app.netlify.com/sites/expressjscom-preview/deploys/6792346ffeb31c0008f277f2
😎 Deploy Preview https://deploy-preview-1738--expressjscom-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@carlosstenzel carlosstenzel changed the title Feat/poc translate by json Feat/poc translate by json - POC - NOT MERGE Jan 23, 2025
@carlosstenzel
Copy link
Contributor Author

@bjohansebas @chrisdel101
I am testing a less aggressive approach to changes for translations. It needs many adjustments, but it's a start. What do you think?

ref: #1736

@bjohansebas bjohansebas marked this pull request as draft January 24, 2025 00:56
@bjohansebas
Copy link
Member

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.

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