Skip to content

Commit

Permalink
Include Pt-Br Language
Browse files Browse the repository at this point in the history
  • Loading branch information
Cicatelli committed Oct 3, 2024
1 parent 86e6f8b commit 25c322a
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,10 @@ export default function GeneralPanelForm() {
<option value='it'>Italian</option>
<option value='no'>Norwegian</option>
<option value='pt'>Portuguese</option>
<option value='ptbr'>Português Brasil</option>
<option value='es'>Spanish</option>
<option value='sv'>Swedish</option>
<option value='pl'>Polish</option>
<option value='pl'>Polish</option>
</Select>
</Panel.ListItem>
</Panel.ListGroup>
Expand Down
12 changes: 12 additions & 0 deletions apps/client/src/translation/TranslationProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { createContext, PropsWithChildren, useCallback, useContext } from 'react

import useSettings from '../common/hooks-query/useSettings';

import { langPtbr } from './languages/pt-br';
import { langDe } from './languages/de';
import { langEn } from './languages/en';
import { langEs } from './languages/es';
Expand All @@ -12,6 +13,7 @@ import { langNo } from './languages/no';
import { langPl } from './languages/pl';
import { langPt } from './languages/pt';
import { langSv } from './languages/sv';
import { Playback } from 'ontime-types';

const translationsList = {
en: langEn,
Expand All @@ -24,6 +26,7 @@ const translationsList = {
pt: langPt,
sv: langSv,
pl: langPl,
ptbr: langPtbr,
};

interface TranslationContextValue {
Expand Down Expand Up @@ -60,3 +63,12 @@ export const useTranslation = () => {
const { getLocalizedString } = useContext(TranslationContext);
return { getLocalizedString };
};
export interface StatusBarTimersProps {
projectTitle: string;
playback: Playback;
selectedEventId: string | null;
firstStart?: number;
firstId?: string;
lastEnd?: number;
lastId?: string;
}
26 changes: 26 additions & 0 deletions apps/client/src/translation/languages/pt-br.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import { TranslationObject } from './en';

export const langPtbr: TranslationObject = {
'common.expected_finish': 'TÉRMINO ESPERADO',
'common.minutes': 'min',
'common.now': 'AGORA',
'common.next': 'PRÓXIMO',
'common.public_message': 'MENSAGEM PÚBLICA',
'common.scheduled_start': 'INÍCIO PLANEJADO',
'common.scheduled_end': 'ENCERRAMENTO PLANEJADO',
'common.projected_start': 'INÍCIO PREVISTO',
'common.projected_end': 'ENCERRAMENTO PREVISTO',
'common.stage_timer': 'TEMPO DO APRESENTADOR',
'common.started_at': 'INICIADO ÀS',
'common.time_now': 'HORA ATUAL',
'countdown.ended': 'EVENTO ENCERRADO ÀS',
'countdown.running': 'TEMPO RESTANTE',
'countdown.select_event': 'SELECIONE UM EVENTO PARA ACOMPANHAR',
'countdown.to_start': 'Tempo para Iniciar',
'countdown.waiting': 'Aguardando o Início do Evento',
'countdown.overtime': 'em tempo extra',
'timeline.live': 'AGORA',
'timeline.done': 'Concluído',
'timeline.due': 'Pendente',
'timeline.followedby': 'Seguido por',
};

0 comments on commit 25c322a

Please sign in to comment.