Seed Bible extension API (v1.19.0) / seed-bible/extensions / SandboxI18nHook
Interface: SandboxI18nHook
What useI18n returns.
Properties
isRtl
isRtl: boolean;Whether that language is written right to left.
language
language: string;The app's current language code, like "en" or "es".
ns?
ns?: string;The namespace useI18n was called with, if any.
t
t: (key: string, options?: Record<string, unknown>) => string;i18next's t, reading the strings useI18n was given the namespace of (Seed Bible's own without one) unless options.ns names another.
Parameters
| Parameter | Type |
|---|---|
key | string |
options? | Record<string, unknown> |
Returns
string