decord/stable/source/intl/index.native.tsx
github-actions 57c2214117 chore: update source for stable 347.12
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4973.js (118.4 MB)
2026-09-29 21:26:22 +00:00

75 lines
2.9 KiB
TypeScript

// Module ID: 1115
// Function ID: 1116
// Name: util
// Dependencies: [19, 1074, 21, 1116, 1117, 1154, 1177, 14495, 2, 14496, 14499]
// Exports: getSystemLocale, useSyncMessages
// Module 1115 (util)
import NativeDeviceLocaleModule from "NativeDeviceLocaleModule" /* 1116 */;
import intl_util from "intl/util" /* 1117 */;
import native from "native" /* 1177 */;
import migration from "migration" /* 14495 */;
import _modDef14499 from "module_14499" /* 14499 */;
import noop from "module_19" /* 19 */;
require = fn;
const Fonts = fn(1074).Fonts;
const jsx = fn(21).jsx;
let obj = { strong: { fontFamily: Fonts.PRIMARY_SEMIBOLD }, italic: { fontStyle: "italic" }, code: { fontFamily: Fonts.CODE_NORMAL }, del: { textDecorationLine: "line-through", textDecorationStyle: "solid" } };
let _default = fn(1116).default;
let str = "en-US";
if (null != _default) {
str = _default.getConstants().Language;
}
function getSystemLocale(arg0) {
let Language = arg0;
const _default = NativeDeviceLocaleModule.default;
if (null != _default) {
Language = _default.getConstants().Language;
}
return Language;
}
const util = fn(1117);
const normalizedLocale = util.getNormalizedLocale(str, "en-US");
const module_1154 = fn(1154);
const reactFormatter = module_1154.makeReactFormatter({
$i(children, arg1) {
obj = { style: obj.italic, children };
return jsx(native.LegacyText, { style: obj.italic, children }, arg1);
},
$b(children, arg1) {
obj = { style: obj.strong, children };
return jsx(native.LegacyText, { style: obj.strong, children }, arg1);
},
$del(children, arg1) {
obj = { style: obj.del, children };
return jsx(native.LegacyText, { style: obj.del, children }, arg1);
},
$p(children, arg1) {
return jsx(native.LegacyText, { children }, arg1);
},
$code(children, arg1) {
obj = { style: obj.code, children };
return jsx(native.LegacyText, { style: obj.code, children }, arg1);
},
$link(children, arg1, arg2) {
[tmp] = arg2;
return jsx(migration.IntlLink, { target: tmp, children }, arg1);
}
});
const intlManager = new fn(1154).IntlManager({ initialLocale: normalizedLocale, defaultLocale: "en-US" });
const withFormattersResult = intlManager.withFormatters({ format: reactFormatter, formatToPlainString: fn(1154).stringFormatter, formatToMarkdownString: fn(1154).markdownFormatter, formatToParts: fn(1154).astFormatter });
const size = fn(2);
const result = size.fileFinishedImporting("intl/index.native.tsx");
export const intl = withFormattersResult;
export { getSystemLocale };
export const getAvailableLocales = fn(1117).getAvailableLocales;
export const getLanguages = fn(1117).getLanguages;
export const useSyncMessages = function useSyncMessages(arg0) {
return intl_util.useSyncMessages(arg0, withFormattersResult);
};
export const t = fn(14496)._defaultMessages;
export const international = _modDef14499;
export const systemLocale = str;
export const initialLocale = normalizedLocale;