decord/source/modules/markup/StaticRouteRendering.tsx
2026-09-02 09:53:35 +00:00

57 lines
1.7 KiB
TypeScript

// Module ID: 4976
// Function ID: 4977
// Name: staticRouteToTranslation
// Dependencies: [1984, 1233, 2]
// Exports: staticRouteToItemString, staticRouteToTranslation
// Module 4976 (staticRouteToTranslation)
import getSystemLocale from "getSystemLocale" /* 1233 */;
import closure_2 from "createGuildRoleRecordFromRust" /* 1984 */;
require = arg1;
const result = require("set").fileFinishedImporting("modules/markup/StaticRouteRendering.tsx");
export const staticRouteToTranslation = function staticRouteToTranslation(arg0) {
if ("home" !== arg0) {
if ("guide" !== arg0) {
if ("browse" === arg0) {
const intl3 = getSystemLocale.intl;
return intl3.string(getSystemLocale.t.et6wav);
} else if ("customize" === arg0) {
const intl2 = getSystemLocale.intl;
return intl2.string(getSystemLocale.t.h9mGOP);
} else if ("linked-roles" === arg0) {
const intl = getSystemLocale.intl;
return intl.string(getSystemLocale.t.ghtnss);
} else {
return null;
}
}
}
const intl4 = getSystemLocale.intl;
return intl4.string(getSystemLocale.t.VbpLyU);
};
export const staticRouteToItemString = function staticRouteToItemString(arg0, arg1, id) {
if ("linked-roles" === arg0) {
if (null == id) {
return null;
} else {
role = role.getRole(id, arg1);
let name = null;
if (null != role) {
const tags = role.tags;
let guild_connections;
if (tags != null) {
guild_connections = tags.guild_connections;
}
name = null;
if (null === guild_connections) {
name = role.name;
}
}
return name;
}
} else {
return null;
}
};