From 40278831903ff5e4d547a2f76d6298383cab23af Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 30 Jun 2026 15:21:41 +0000 Subject: [PATCH] docs: daily content scan fixes 2026-06-30 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CI hard-fail removal: - Remove `import Video from '@/components/Video'` from 7 files (react-core-linter, core, devlog, blog) — bare imports in MDX body are a CI hard fail Author frontmatter: - Add missing `occupation` field to authors/jackie.mdx and authors/default.mdx Heading hierarchy fixes: - Flatten `###` to `##` in faqs.mdx (overview, cli, react-native), locadex/mintlify.mdx, locadex/next.mdx - Fix heading levels in blog/gt-next.mdx and next/api/types/dictionary-translation-options.mdx Code fence language identifiers: - Add missing language tags (text, bash, jsonc) to bare fences in blog/plurals.mdx, blog/multilingual-nextjs-seo.mdx, devlog/gt-next_v6_3_0.mdx, cli/reference/config.mdx - Fix 4-backtick closing fences in next/guides/cache-components.mdx Copy/prose fixes: - Fix garbled sentence in next/api/components/tx.mdx and next/api/strings/tx.mdx - Fix wrong internal links (use-gt → get-gt) in tx.mdx files - Fix `` → `` reference in next/api/components/tx.mdx - Fix typos in get-gt.mdx, get-messages.mdx ("Translations" → "Translating") - Complete truncated sentence in core/locales.mdx - Fix redundant phrasing in core/quickstart.mdx and next/tutorials/examples/next-speedrun.mdx - Fix duplicate list item numbering in next/guides/migration.mdx - Fix wrong variable name in next/guides/dictionaries.mdx - Fix wrong property access jobStatus.jobs[0] → jobStatus[0] in core class setup-project.mdx - Fix wrong EnqueueFilesResult link in core/class/methods/translation/await-jobs.mdx - Fix trade-off hyphenation in tx.mdx Cleanup: - Remove empty "## Next steps" sections in format-date-time.mdx and create-next-middleware.mdx - Remove dangling "API References:" line in next/guides/local-tx.mdx - Fix malformed table separator in node/api/strings/msg.mdx - Remove trailing space from heading in platform/supported-locales.mdx Co-Authored-By: Claude Sonnet 4.6 Claude-Session: https://claude.ai/code/session_019K8FtgGqHRbpYp7mWmRAgU --- authors/default.mdx | 1 + authors/jackie.mdx | 1 + blog/en-US/gt-next.mdx | 12 +++++------ blog/en-US/i18n-without-translation-files.mdx | 1 - blog/en-US/multilingual-nextjs-seo.mdx | 4 ++-- blog/en-US/plurals.mdx | 6 +++--- devlog/en-US/gt-next_v6_3_0.mdx | 2 +- devlog/en-US/gt-react_v10_15_0.mdx | 1 - devlog/en-US/gt-react_v10_19_0.mdx | 1 - devlog/en-US/react-core-linter_v0_1_0.mdx | 1 - docs/en-US/cli/faqs.mdx | 10 +++++----- docs/en-US/cli/reference/config.mdx | 2 +- .../methods/formatting/format-date-time.mdx | 3 --- .../class/methods/translation/await-jobs.mdx | 2 +- .../methods/translation/setup-project.mdx | 2 +- docs/en-US/core/index.mdx | 1 - docs/en-US/core/locales.mdx | 2 +- docs/en-US/core/quickstart.mdx | 2 +- docs/en-US/locadex/mintlify.mdx | 20 +++++++++---------- docs/en-US/locadex/next.mdx | 12 +++++------ docs/en-US/next/api/components/tx.mdx | 6 +++--- .../api/middleware/create-next-middleware.mdx | 2 -- docs/en-US/next/api/strings/get-gt.mdx | 2 +- docs/en-US/next/api/strings/get-messages.mdx | 2 +- docs/en-US/next/api/strings/tx.mdx | 4 ++-- .../types/dictionary-translation-options.mdx | 2 +- docs/en-US/next/guides/cache-components.mdx | 4 ++-- docs/en-US/next/guides/dictionaries.mdx | 2 +- docs/en-US/next/guides/local-tx.mdx | 1 - docs/en-US/next/guides/migration.mdx | 2 +- .../next/tutorials/examples/next-speedrun.mdx | 2 +- docs/en-US/node/api/strings/msg.mdx | 2 +- docs/en-US/overview/faqs.mdx | 6 +++--- docs/en-US/platform/supported-locales.mdx | 2 +- .../react-core-linter/guides/quickstart.mdx | 1 - docs/en-US/react-core-linter/index.mdx | 1 - docs/en-US/react-native/faqs.mdx | 10 +++++----- 37 files changed, 63 insertions(+), 74 deletions(-) diff --git a/authors/default.mdx b/authors/default.mdx index ea49a632..1b003778 100644 --- a/authors/default.mdx +++ b/authors/default.mdx @@ -1,6 +1,7 @@ --- name: Team avatar: /static/avatars/logo.png +occupation: Team company: General Translation email: archie@generaltranslation.com twitter: https://x.com/generaltxn diff --git a/authors/jackie.mdx b/authors/jackie.mdx index 2ac16548..c99d0722 100644 --- a/authors/jackie.mdx +++ b/authors/jackie.mdx @@ -1,6 +1,7 @@ --- name: Jackie Chen avatar: /static/avatars/jackie.png +occupation: Software Engineer company: General Translation email: jackie@generaltranslation.com twitter: https://x.com/Some_Jackie diff --git a/blog/en-US/gt-next.mdx b/blog/en-US/gt-next.mdx index 4f30479e..40f68147 100644 --- a/blog/en-US/gt-next.mdx +++ b/blog/en-US/gt-next.mdx @@ -8,7 +8,7 @@ tags: ['guide', 'internationalization', 'nextjs', 'gt-next'] **Internationalization (i18n) sucks. We're building a Next.js library, gt-next, to make it easier.** Today we're launching it in open beta. -``` copy +```bash copy npm i gt-next ``` @@ -40,9 +40,9 @@ The goal with gt-next is to create an abundance mindset around translations. The - Get an API key 🔐 on our [platform](https://generaltranslation.com) - Read the [docs](https://generaltranslation.com/docs) 📄 -### What you can do with gt-next +## What you can do with gt-next -#### Format variables and plurals +### Format variables and plurals ```javascript copy import { T } from 'gt-next' @@ -67,14 +67,14 @@ export default function Page() { } ``` -#### Use a developer API key to see translations locally +### Use a developer API key to see translations locally -```.env copy +```bash copy GT_API_KEY="gtx-dev-cae62d6fe1e33bda603c9a2926ab0fb8" GT_PROJECT_ID="abcdef12-3456-789a-bcd4-ef123456789a" ``` -#### Support over 100 languages out of the box, with on-demand translation. +### Support over 100 languages out of the box, with on-demand translation. ![landing](/images/blogs/landing.png) diff --git a/blog/en-US/i18n-without-translation-files.mdx b/blog/en-US/i18n-without-translation-files.mdx index 0be9ae2d..df9db135 100644 --- a/blog/en-US/i18n-without-translation-files.mdx +++ b/blog/en-US/i18n-without-translation-files.mdx @@ -6,7 +6,6 @@ authors: [jackie] tags: ['guide', 'internationalization', 'nextjs', 'i18n', 'gt-next', 'translation-files', 'developer-experience'] --- -import Video from '@/components/Video'; Everyone who's internationalized a JavaScript app knows the workflow. You install an i18n library, create an `en.json` file, pull every user-facing string out of your components, assign each one a key, and reference the key where the string used to be. Then you duplicate that JSON file for every language you support. `es.json`, `fr.json`, `ja.json`. diff --git a/blog/en-US/multilingual-nextjs-seo.mdx b/blog/en-US/multilingual-nextjs-seo.mdx index b019428a..1ac2d899 100644 --- a/blog/en-US/multilingual-nextjs-seo.mdx +++ b/blog/en-US/multilingual-nextjs-seo.mdx @@ -33,7 +33,7 @@ Search engines need separate, crawlable URLs to index each language version inde This means **locale-in-the-URL** — not cookies, not query parameters, not `Accept-Language` detection alone. -``` +```text ✅ generaltranslation.com/en/about ✅ generaltranslation.com/fr/about ✅ generaltranslation.com/es/about @@ -46,7 +46,7 @@ This means **locale-in-the-URL** — not cookies, not query parameters, not `Acc First, nest your pages under a `[locale]` dynamic segment: -``` +```text app/ └── [locale]/ ├── layout.tsx diff --git a/blog/en-US/plurals.mdx b/blog/en-US/plurals.mdx index 02b1af42..5ce90c5c 100644 --- a/blog/en-US/plurals.mdx +++ b/blog/en-US/plurals.mdx @@ -12,7 +12,7 @@ layout: PostLayout We often encounter apps that display awkward messages like: -``` +```text You have 1 new message(s) ``` @@ -168,7 +168,7 @@ languages like Arabic and Polish have more than just these two forms. For example, an English-speaking user might expect: -``` +```text "No one is watching" "1 person is watching" "2 people are watching" @@ -177,7 +177,7 @@ For example, an English-speaking user might expect: Whereas an Arabic-speaking user might expect different expressions for singular, dual (when the count is exactly two things), and small and large plural forms: -``` +```text "لا أحد يشاهد" "1 شخص يشاهد" "2 شخصان يشاهدان" diff --git a/devlog/en-US/gt-next_v6_3_0.mdx b/devlog/en-US/gt-next_v6_3_0.mdx index ce7567e9..9ea11079 100644 --- a/devlog/en-US/gt-next_v6_3_0.mdx +++ b/devlog/en-US/gt-next_v6_3_0.mdx @@ -63,7 +63,7 @@ export default function Page() { To support interpolation, the `msg()` function returns an encoded message instead of a plain string. The format looks like this: -``` +```text : ``` diff --git a/devlog/en-US/gt-react_v10_15_0.mdx b/devlog/en-US/gt-react_v10_15_0.mdx index c54b98b2..536bbe5f 100644 --- a/devlog/en-US/gt-react_v10_15_0.mdx +++ b/devlog/en-US/gt-react_v10_15_0.mdx @@ -5,7 +5,6 @@ authors: [ernest] tags: ['gt-react', 'derive', 'tagged-template', 'i18n'] --- -import Video from '@/components/Video'; ## The `declareStatic()` → `derive()` rename diff --git a/devlog/en-US/gt-react_v10_19_0.mdx b/devlog/en-US/gt-react_v10_19_0.mdx index 398a1267..20c8c56a 100644 --- a/devlog/en-US/gt-react_v10_19_0.mdx +++ b/devlog/en-US/gt-react_v10_19_0.mdx @@ -5,7 +5,6 @@ authors: [ernest] tags: ['gt-react', 'browser', 'hot-reload', 'dev-experience', 'i18n'] --- -import Video from '@/components/Video';