//#region src/shared/datasources/localized.d.ts /** * A record's text in a language, for a site in several languages: its translation in the field * `_` (`title_fr`), else `` itself, written in the site's main language. * A missing or empty translation falls back to the main language. * * ```ts * const { i18n } = useTranslation(); * const title = localized(recipe, "title", i18n.language); * ``` */ declare function localized(record: T, field: K, language: string): T[K]; //#endregion export { localized }; //# sourceMappingURL=localized.d.ts.map