{"version":3,"file":"t.cjs","names":["tBase","resolveAmbientLocale"],"sources":["../../../src/server/t.ts"],"sourcesContent":["import type {\n  DeclaredLocales,\n  LocalesValues,\n  StrictModeLocaleMap,\n} from '@intlayer/types/module_augmentation';\nimport { t as tBase } from 'react-intlayer/server';\nimport { resolveAmbientLocale } from './ambientLocale';\n\n/**\n * On the server side, returns the translation of a multilingual object.\n *\n * If the locale is not provided, it will use the locale from the server\n * context, falling back to the locale carried by the request.\n */\nexport const t = <Content = string, L extends LocalesValues = DeclaredLocales>(\n  multilangContent: StrictModeLocaleMap<Content>,\n  locale?: L\n): ReturnType<typeof tBase<Content, L>> =>\n  tBase<Content, L>(multilangContent, resolveAmbientLocale(locale) as L);\n"],"mappings":";;;;;;;;;;;AAcA,MAAa,KACX,kBACA,eAEAA,yBAAkB,kBAAkBC,kDAAqB,MAAM,CAAM"}