一键导入
rtl
Right-to-left locale configuration guide for Better Translate.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Right-to-left locale configuration guide for Better Translate.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Extract source strings, generate locale files, and remove unused keys for Better Translate projects.
Expo and React Native integration guide using Better Translate React support.
React and Expo integration guide for Better Translate providers, hooks, and typed translation access.
Package map and reading order for Better Translate product skills.
Guide for combining Better Translate packages without duplicating translation ownership.
Smallest Better Translate setup for plain TypeScript, Node.js, Bun, APIs, and shared libraries.
| name | rtl |
| description | Right-to-left locale configuration guide for Better Translate. |
Use this guide when some locales should render right-to-left.
RTL is configured in @better-translate/core.
That means you define direction once in the translator, then adapters can read it later.
import { configureTranslations } from "@better-translate/core";
export const translator = await configureTranslations({
availableLocales: ["en", "ar"] as const,
defaultLocale: "en",
fallbackLocale: "en",
directions: {
ar: "rtl",
},
messages: { en, ar },
});
Then read it from the translator or server helpers:
translator.getDirection({ locale: "ar" }); // "rtl"
translator.isRtl({ locale: "ar" }); // true
Keep direction rules in the same shared exported translator so locale inference stays consistent anywhere you consume translator, server helpers, or React hooks.
Keep direction rules in the core config, not scattered across components.