Knowledge Base
Answers to common questions about localizing apps, docs, and content with General Translation.
- What is the best localization software for developers?Look for one system that covers the whole pipeline, from the i18n library in your code to translation and delivery, instead of stitching together a separate library, translation management system, and translation vendor.
- How do I translate conditional text in JSX?Instead of translating each side of a ternary separately, wrap the whole sentence in a <T> component and express the condition with <Branch>, so the translator sees the full context and can reorder the sentence for each language.
- How do I set up SEO for a multilingual Next.js app?Give every language its own URL, set the html lang attribute, point each page's canonical URL at itself, add hreflang alternates for every language, translate titles and descriptions, and list every language version in your sitemap.
- How do I handle plurals in React?Don't hard-code plural logic with checks like n === 1. A small helper is enough for English-only apps, but multilingual apps need locale-aware plural rules, which an i18n component such as <Plural> from gt-react or gt-next handles for every language.
- Can I do i18n without translation files?Yes. With gt-react or gt-next, content stays inline in your components inside a <T> component, and translations are generated at build time as output, so there are no keys or per-locale JSON files to write and keep in sync.