decord/source/modules/markup/StaticRouteRendering.tsx

58 lines
1.7 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 4861
// Function ID: 4862
2026-07-20 16:05:17 +00:00
// Name: staticRouteToTranslation
2026-08-25 06:04:03 +00:00
// Dependencies: [1985, 1236, 2]
2026-07-20 16:05:17 +00:00
// Exports: staticRouteToItemString, staticRouteToTranslation
2026-08-25 06:04:03 +00:00
// Module 4861 (staticRouteToTranslation)
2026-08-24 06:08:38 +00:00
import getSystemLocale from "getSystemLocale" /* 1236 */;
2026-08-25 06:04:03 +00:00
import closure_2 from "createGuildRoleRecordFromRust" /* 1985 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
2026-07-23 10:11:24 +00:00
const result = require("set").fileFinishedImporting("modules/markup/StaticRouteRendering.tsx");
2026-07-20 16:05:17 +00:00
export const staticRouteToTranslation = function staticRouteToTranslation(arg0) {
if ("home" !== arg0) {
if ("guide" !== arg0) {
if ("browse" === arg0) {
2026-08-24 06:08:38 +00:00
const intl3 = getSystemLocale.intl;
return intl3.string(getSystemLocale.t.et6wav);
2026-07-20 16:05:17 +00:00
} else if ("customize" === arg0) {
2026-08-24 06:08:38 +00:00
const intl2 = getSystemLocale.intl;
return intl2.string(getSystemLocale.t.h9mGOP);
2026-07-20 16:05:17 +00:00
} else if ("linked-roles" === arg0) {
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
return intl.string(getSystemLocale.t.ghtnss);
2026-07-20 16:05:17 +00:00
} else {
return null;
}
}
}
2026-08-24 06:08:38 +00:00
const intl4 = getSystemLocale.intl;
return intl4.string(getSystemLocale.t.VbpLyU);
2026-07-20 16:05:17 +00:00
};
export const staticRouteToItemString = function staticRouteToItemString(arg0, arg1, id) {
if ("linked-roles" === arg0) {
if (null == id) {
return null;
} else {
2026-07-23 10:11:24 +00:00
role = role.getRole(id, arg1);
2026-07-20 16:05:17 +00:00
let name = null;
if (null != role) {
const tags = role.tags;
let guild_connections;
2026-07-29 08:29:29 +00:00
if (tags != null) {
2026-07-20 16:05:17 +00:00
guild_connections = tags.guild_connections;
}
name = null;
if (null === guild_connections) {
name = role.name;
}
}
return name;
}
} else {
return null;
}
};