Files
discord-decomp/sources/by-id/module-03282.js
T
2026-07-28 01:06:53 +03:00

46 lines
2.6 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/* Metro module 3282; source: unknown; dependencies: [] */
function _fun25926(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#25926, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3409:6, offset: 0x00f30eae, size: 374 bytes, params: 8, frame: 16
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
exports.default = undefined;
object = {lessThanXSeconds: {'one': 'moins d’une seconde', 'other': 'moins de {{count}} secondes'},
xSeconds: {'one': '1 seconde', 'other': '{{count}} secondes'}, halfAMinute: '30 secondes',
lessThanXMinutes: {'one': 'moins d’une minute', 'other': 'moins de {{count}} minutes'},
xMinutes: {'one': '1 minute', 'other': '{{count}} minutes'}, aboutXHours: {'one': 'environ 1 heure',
'other': 'environ {{count}} heures'}, xHours: {'one': '1 heure', 'other': '{{count}} heures'},
xDays: {'one': '1 jour', 'other': '{{count}} jours'}, aboutXWeeks: {'one': 'environ 1 semaine',
'other': 'environ {{count}} semaines'}, xWeeks: {'one': '1 semaine', 'other': '{{count}} semaines'},
aboutXMonths: {'one': 'environ 1 mois', 'other': 'environ {{count}} mois'}, xMonths: {'one': '1 mois',
'other': '{{count}} mois'}, aboutXYears: {'one': 'environ 1 an', 'other': 'environ {{count}} ans'},
xYears: {'one': '1 an', 'other': '{{count}} ans'}, overXYears: {'one': 'plus d’un an',
'other': 'plus de {{count}} ans'}, almostXYears: {'one': 'presqu’un an', 'other': 'presque {{count}} ans'}};
exports.default = formatDistance_25927;
module.exports = exports.default;
function formatDistance_25927(a0, a1, a2) { // fn#25927, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3409:1050, offset: 0x00f31024, size: 159 bytes, params: 4, frame: 17
var r0;
var r3;
var other;
var replace;
var value;
const property = env0_0[a0];
if (typeof property === 'string') {
r3 = property;
} else {
if (a1 === 1) {
r0 = property.one;
} else {
other = property.other;
replace = other.replace;
value = global.String(a1);
value = Reflect.apply(replace, other, ['{{count}}', value]);
r0 = value;
}
r3 = r0;
}
return a2 == null ? r3 : a2.addSuffix ? a2.comparison && a2.comparison > 0 ? 'dans ' + r3 : 'il y a ' + r3 : r3;
}
}
global.__d(_fun25926, 3282, []) /* metro module 3282 */;