Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crew manifest verb translate (AI, lobby, ghosts) #356

Merged
merged 2 commits into from
Jul 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 12 additions & 11 deletions tgui/packages/tgui/interfaces/CrewManifest.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@ import { Icon, Section, Table, Tooltip } from 'tgui-core/components';
import { classes } from 'tgui-core/react';

import { useBackend } from '../backend';
import { DEPARTMENTS_RU, JOBS_RU } from '../bandastation/ru_jobs';
import { Window } from '../layouts';

const commandJobs = [
'Head of Personnel',
'Head of Security',
'Chief Engineer',
'Research Director',
'Chief Medical Officer',
'Quartermaster',
JOBS_RU['Head of Personnel'],
JOBS_RU['Head of Security'],
JOBS_RU['Chief Engineer'],
JOBS_RU['Research Director'],
JOBS_RU['Chief Medical Officer'],
JOBS_RU['Quartermaster'],
];

export const CrewManifest = (props) => {
Expand All @@ -26,9 +27,9 @@ export const CrewManifest = (props) => {
className={'CrewManifest--' + dept}
key={dept}
title={
dept +
(DEPARTMENTS_RU[dept] || dept) +
(dept !== 'Misc'
? ` (${positions[dept].open} positions open)`
? ` (позиций открыто: ${positions[dept].open})`
: '')
}
>
Expand Down Expand Up @@ -57,8 +58,8 @@ export const CrewManifest = (props) => {
<Icon className="CrewManifest__Icon" name="infinity" />
</Tooltip>
)}
{crewMember.trim === 'Captain' && (
<Tooltip content="Captain" position="bottom">
{crewMember.trim === JOBS_RU['Captain'] && (
<Tooltip content={JOBS_RU['Captain']} position="bottom">
<Icon
className={classes([
'CrewManifest__Icon',
Expand All @@ -69,7 +70,7 @@ export const CrewManifest = (props) => {
</Tooltip>
)}
{commandJobs.includes(crewMember.trim) && (
<Tooltip content="Member of command" position="bottom">
<Tooltip content="Член командования" position="bottom">
<Icon
className={classes([
'CrewManifest__Icon',
Expand Down
Loading