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

46 lines
2.6 KiB
JavaScript

/* Metro module 3250; source: unknown; dependencies: [] */
function _fun25844(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#25844, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3377:6, offset: 0x00f2c63e, size: 374 bytes, params: 8, frame: 16
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
exports.default = undefined;
object = {lessThanXSeconds: {'one': 'mindre end ét sekund', 'other': 'mindre end {{count}} sekunder'},
xSeconds: {'one': '1 sekund', 'other': '{{count}} sekunder'}, halfAMinute: 'ét halvt minut',
lessThanXMinutes: {'one': 'mindre end ét minut', 'other': 'mindre end {{count}} minutter'},
xMinutes: {'one': '1 minut', 'other': '{{count}} minutter'}, aboutXHours: {'one': 'cirka 1 time',
'other': 'cirka {{count}} timer'}, xHours: {'one': '1 time', 'other': '{{count}} timer'},
xDays: {'one': '1 dag', 'other': '{{count}} dage'}, aboutXWeeks: {'one': 'cirka 1 uge',
'other': 'cirka {{count}} uger'}, xWeeks: {'one': '1 uge', 'other': '{{count}} uger'},
aboutXMonths: {'one': 'cirka 1 måned', 'other': 'cirka {{count}} måneder'}, xMonths: {'one': '1 måned',
'other': '{{count}} måneder'}, aboutXYears: {'one': 'cirka 1 år', 'other': 'cirka {{count}} år'},
xYears: {'one': '1 år', 'other': '{{count}} år'}, overXYears: {'one': 'over 1 år',
'other': 'over {{count}} år'}, almostXYears: {'one': 'næsten 1 år', 'other': 'næsten {{count}} år'}};
exports.default = formatDistance_25845;
module.exports = exports.default;
function formatDistance_25845(a0, a1, a2) { // fn#25845, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3377:1026, offset: 0x00f2c7b4, 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 ? 'om ' + r3 : r3 + ' siden' : r3;
}
}
global.__d(_fun25844, 3250, []) /* metro module 3250 */;