57 lines
1.7 KiB
TypeScript
57 lines
1.7 KiB
TypeScript
// Module ID: 4861
|
|
// Function ID: 4862
|
|
// Name: staticRouteToTranslation
|
|
// Dependencies: [1985, 1236, 2]
|
|
// Exports: staticRouteToItemString, staticRouteToTranslation
|
|
|
|
// Module 4861 (staticRouteToTranslation)
|
|
import getSystemLocale from "getSystemLocale" /* 1236 */;
|
|
import closure_2 from "createGuildRoleRecordFromRust" /* 1985 */;
|
|
|
|
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;
|
|
}
|
|
};
|