Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat(i18n): support translating through locale extensionsmyDoc.fr.md#9700

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
slorber wants to merge8 commits intomain
base:main
Choose a base branch
Loading
fromslorber/i18n-locale-extension

Conversation

@slorber
Copy link
Collaborator

@slorberslorber commentedJan 4, 2024
edited
Loading

Motivation

Translating through thei18n folder is nice for i18n SaaS integrations (Crowdin)

But it is not ideal for simpler needs based on Git, as it requires to explain the i18n folder structure convention.

To make i18n simpler to adopt, let's add support for localized file extensions to all our core content plugins

  • ./docs/myDoc.fr.md
  • ./blog/myBlog.fr.md
  • ./src/pages/myPage.fr.tsx

This kind of convention is already used by other documentation frameworks:

Note, we also want to support this for metadata files:

  • docs_category_.fr.yml
  • blogauthors.fr.yml

Note, theeditUrl andeditLocalizedFiles options should rather work as expected too

Test Plan

Unit tests + dogfood

Test links

https://deploy-preview-9700--docusaurus-2.netlify.app/

Local:

hrumhurum, tseijp, and franzd1 reacted with thumbs up emoji
@slorberslorber added pr: new featureThis PR adds a new API or behavior. domain: i18nRelated to the i18n system labelsJan 4, 2024
@facebook-github-botfacebook-github-bot added the CLA SignedSigned Facebook CLA labelJan 4, 2024
@netlify
Copy link

netlifybot commentedJan 4, 2024
edited
Loading

[V2]

NameLink
🔨 Latest commite9b20ca
🔍 Latest deploy loghttps://app.netlify.com/sites/docusaurus-2/deploys/65970249b391480008b5d1a4
😎 Deploy Previewhttps://deploy-preview-9700--docusaurus-2.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 yourNetlify site configuration.

@github-actions
Copy link

github-actionsbot commentedJan 4, 2024
edited
Loading

⚡️ Lighthouse report for the deploy preview of this PR

URLPerformanceAccessibilityBest PracticesSEOPWAReport
/🟠 65🟢 98🟢 100🟢 100🟠 89Report
/docs/installation🟠 69🟢 98🟢 100🟢 100🟠 89Report
/docs/category/getting-started🟠 75🟢 100🟢 100🟢 90🟠 89Report
/blog🟠 75🟢 100🟢 100🟢 90🟠 89Report
/blog/preparing-your-site-for-docusaurus-v3🟠 65🟢 97🟢 100🟢 100🟠 89Report
/blog/tags/release🟠 74🟢 100🟢 100🟠 80🟠 89Report
/blog/tags🟠 75🟢 100🟢 100🟢 90🟠 89Report

@github-actions
Copy link

github-actionsbot commentedJan 4, 2024
edited
Loading

Size Change: +1.84 kB (0%)

Total Size: 929 kB

FilenameSizeChange
website/.docusaurus/globalData.json59.5 kB+317 B (+1%)
website/build/assets/js/main.********.js718 kB+1.52 kB (0%)
ℹ️View Unchanged
FilenameSize
website/build/assets/css/styles.********.css114 kB
website/build/index.html37.9 kB

compressed-size-action

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@Josh-CenaJosh-CenaAwaiting requested review from Josh-CenaJosh-Cena will be requested when the pull request is marked ready for reviewJosh-Cena is a code owner

Assignees

No one assigned

Labels

CLA SignedSigned Facebook CLAdomain: i18nRelated to the i18n systempr: new featureThis PR adds a new API or behavior.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@slorber@Teerawat198711@facebook-github-bot

[8]ページ先頭

©2009-2025 Movatter.jp