PHP 8.2.30
Preview: Trans.js Size: 1018 B
/proc/thread-self/root/home/byroehnu/.trash/node_modules11/react-i18next/src/Trans.js

import { useContext } from 'react';
import { nodesToString, Trans as TransWithoutContext } from './TransWithoutContext.js';
import { getI18n, I18nContext } from './context.js';

export { nodesToString };

export function Trans({
  children,
  count,
  parent,
  i18nKey,
  context,
  tOptions = {},
  values,
  defaults,
  components,
  ns,
  i18n: i18nFromProps,
  t: tFromProps,
  shouldUnescape,
  ...additionalProps
}) {
  const { i18n: i18nFromContext, defaultNS: defaultNSFromContext } = useContext(I18nContext) || {};
  const i18n = i18nFromProps || i18nFromContext || getI18n();

  const t = tFromProps || (i18n && i18n.t.bind(i18n));

  return TransWithoutContext({
    children,
    count,
    parent,
    i18nKey,
    context,
    tOptions,
    values,
    defaults,
    components,
    // prepare having a namespace
    ns:
      ns || (t && t.ns) || defaultNSFromContext || (i18n && i18n.options && i18n.options.defaultNS),
    i18n,
    t: tFromProps,
    shouldUnescape,
    ...additionalProps,
  });
}

Directory Contents

Dirs: 0 × Files: 15

Name Size Perms Modified Actions
1.92 KB lrw-r--r-- 2026-02-28 00:27:18
Edit Download
655 B lrw-r--r-- 2026-02-28 00:27:42
Edit Download
358 B lrw-r--r-- 2026-02-28 00:28:02
Edit Download
138 B lrw-r--r-- 2026-02-28 00:28:14
Edit Download
892 B lrw-r--r-- 2026-02-28 00:28:28
Edit Download
237 B lrw-r--r-- 2026-02-28 00:28:30
Edit Download
1018 B lrw-r--r-- 2026-02-28 00:28:52
Edit Download
290 B lrw-r--r-- 2026-02-28 00:28:56
Edit Download
13.06 KB lrw-r--r-- 2026-02-28 00:28:58
Edit Download
663 B lrw-r--r-- 2026-02-28 00:29:00
Edit Download
1.22 KB lrw-r--r-- 2026-02-28 00:29:06
Edit Download
4.97 KB lrw-r--r-- 2026-02-28 00:29:08
Edit Download
4.10 KB lrw-r--r-- 2026-02-28 00:29:10
Edit Download
712 B lrw-r--r-- 2026-02-28 00:29:12
Edit Download
1.23 KB lrw-r--r-- 2026-02-28 00:29:14
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).