Files
discord-decomp/sources/intl/migration.tsx
T
2026-07-28 01:06:53 +03:00

27 lines
1.6 KiB
TypeScript

/* Metro module 15709; source: intl/migration.tsx; dependencies: [1244, 1282, 2] */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as IndexNativeModule from './index.native.tsx'; /* Metro dependency 1244 */
function _fun120551(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#120551, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15917:6, offset: 0x0252f8e2, size: 96 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(FileImportTrackerModule).fileFinishedImporting('intl/migration.tsx');
exports.improperGetEnglishIntlMessageText = improperGetEnglishIntlMessageText;
function improperGetEnglishIntlMessageText(a0) { // fn#120552, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15917:98, offset: 0x0252f942, size: 98 bytes, params: 2, frame: 14
let value = IndexNativeModule;
const intl = value.intl;
const t = value.t;
value = require(1282) /* metro dependency 1282 */;
const property = t[value.runtimeHashMessageKey(a0)];
const currentLocale = intl.currentLocale;
intl.currentLocale = 'en-US';
value = intl.string(property);
intl.currentLocale = currentLocale;
return value;
}
}
global.__d(_fun120551, 15709, [1244, 1282, 2]) /* metro module 15709, dependencies: [1244, 1282, 2] */;