-
-
Notifications
You must be signed in to change notification settings - Fork 54
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
Translation pt br #1238
base: master
Are you sure you want to change the base?
Translation pt br #1238
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -8,6 +8,7 @@ import ClockTime from '../../viewers/common/clock-time/ClockTime'; | |||||
import RunningTime from '../../viewers/common/running-time/RunningTime'; | ||||||
|
||||||
import styles from './StatusBar.module.scss'; | ||||||
import { useTranslation } from '../../../../../client/src/translation/TranslationProvider'; | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Consider simplifying the import path for useTranslation The current import path Consider simplifying this import path. You might be able to use a shorter path or set up path aliases in your project configuration to make imports more manageable. For example: import { useTranslation } from '@/translation/TranslationProvider'; This assumes you've set up path aliases in your TypeScript or webpack configuration. |
||||||
|
||||||
interface StatusBarTimersProps { | ||||||
projectTitle: string; | ||||||
|
@@ -25,6 +26,8 @@ export default function StatusBarTimers(props: StatusBarTimersProps) { | |||||
const timer = useTimer(); | ||||||
const { clock } = useClock(); | ||||||
|
||||||
const { getLocalizedString } = useTranslation(); | ||||||
|
||||||
const getTimeStart = (): MaybeNumber => { | ||||||
if (firstStart === undefined) { | ||||||
return null; | ||||||
|
@@ -61,25 +64,25 @@ export default function StatusBarTimers(props: StatusBarTimersProps) { | |||||
<div className={styles.timers}> | ||||||
{PlaybackIconComponent} | ||||||
<div className={styles.timeNow}> | ||||||
<span className={styles.label}>Time now</span> | ||||||
<span className={styles.label}>{getLocalizedString('common.time_now')}</span> | ||||||
<ClockTime className={styles.timer} value={clock} /> | ||||||
</div> | ||||||
<div className={styles.elapsedTime}> | ||||||
<span className={styles.label}>Elapsed time</span> | ||||||
<span className={styles.label}>{getLocalizedString('commom.elapsed_time')}</span> | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix typo in localization key for "Elapsed time" There's a typo in the localization key for the "Elapsed time" label. The current key is 'commom.elapsed_time', which should be 'common.elapsed_time'. Please correct the typo to ensure proper translation: - <span className={styles.label}>{getLocalizedString('commom.elapsed_time')}</span>
+ <span className={styles.label}>{getLocalizedString('common.elapsed_time')}</span> 📝 Committable suggestion
Suggested change
|
||||||
<RunningTime className={styles.timer} value={timer.elapsed} /> | ||||||
</div> | ||||||
<div className={styles.runningTime}> | ||||||
<span className={styles.label}>Running timer</span> | ||||||
<span className={styles.label}>{getLocalizedString('countdown.running')}</span> | ||||||
<RunningTime className={styles.timer} value={timer.current} /> | ||||||
</div> | ||||||
|
||||||
<span className={styles.title}>{projectTitle}</span> | ||||||
<div className={styles.startTime}> | ||||||
<span className={styles.label}>Scheduled start</span> | ||||||
<span className={styles.label}>{getLocalizedString('common.scheduled_start')}</span> | ||||||
<ClockTime className={styles.timer} value={getTimeStart()} /> | ||||||
</div> | ||||||
<div className={styles.endTime}> | ||||||
<span className={styles.label}>Scheduled end</span> | ||||||
<span className={styles.label}>{getLocalizedString('common.scheduled_end')}</span> | ||||||
<ClockTime className={styles.timer} value={getTimeEnd()} /> | ||||||
</div> | ||||||
</div> | ||||||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -13,6 +13,7 @@ export const langDe: TranslationObject = { | |||||
'common.stage_timer': 'Bühnen-Timer', | ||||||
'common.started_at': 'Gestartet am', | ||||||
'common.time_now': 'Aktuelle Zeit', | ||||||
'commom.elapsed_time': 'Elapsed Time', | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix typo and provide German translation for 'elapsed time' There are a few issues with this new translation entry:
Please apply the following changes: - 'commom.elapsed_time': 'Elapsed Time',
+ 'common.elapsed_time': 'Verstrichene Zeit', Also, consider moving this addition to a separate PR focused on updating German translations, as it's unrelated to the current PR's objective of adding Brazilian Portuguese support. 📝 Committable suggestion
Suggested change
|
||||||
'countdown.ended': 'Veranstaltung endete um', | ||||||
'countdown.running': 'Veranstaltung läuft', | ||||||
'countdown.select_event': 'Wählen Sie eine Veranstaltung aus, um sie zu verfolgen', | ||||||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -11,6 +11,7 @@ export const langEn = { | |||||
'common.stage_timer': 'Stage Timer', | ||||||
'common.started_at': 'Started At', | ||||||
'common.time_now': 'Time now', | ||||||
'commom.elapsed_time': 'Elapsed Time', | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix typo in the new translation key There's a typo in the newly added translation key. It should be 'common.elapsed_time' instead of 'commom.elapsed_time'. Please apply the following change: - 'commom.elapsed_time': 'Elapsed Time',
+ 'common.elapsed_time': 'Elapsed Time', This will ensure consistency with other keys in the object that use 'common' as a prefix. 📝 Committable suggestion
Suggested change
|
||||||
'countdown.ended': 'Event ended at', | ||||||
'countdown.running': 'Event running', | ||||||
'countdown.select_event': 'Select an event to follow', | ||||||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -13,6 +13,7 @@ export const langEs: TranslationObject = { | |||||
'common.stage_timer': 'Temporizador de presentador', | ||||||
'common.started_at': 'Iniciado en', | ||||||
'common.time_now': 'Ahora', | ||||||
'commom.elapsed_time': 'Elapsed Time', | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix typographical error and provide Spanish translation There are a few issues with the new translation entry:
Please apply the following changes: - 'commom.elapsed_time': 'Elapsed Time',
+ 'common.elapsed_time': 'Tiempo transcurrido', This correction:
📝 Committable suggestion
Suggested change
|
||||||
'countdown.ended': 'Evento finalizado a las', | ||||||
'countdown.running': 'Evento en curso', | ||||||
'countdown.select_event': 'Seleccionar un evento para seguir', | ||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ export const langHu: TranslationObject = { | |
'common.stage_timer': 'Színpadi időzítő', | ||
'common.started_at': 'Kezdődött', | ||
'common.time_now': 'Jelenlegi idő', | ||
'commom.elapsed_time': 'Elapsed Time', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Codebase verification Fix the key typo across all translation files and ensure proper translations The key Issues Identified:
Suggested Changes: - 'commom.elapsed_time': 'Elapsed Time',
+ 'common.elapsed_time': '<Translated Value>', Replace 🔗 Analysis chainCorrect the key typo and provide Hungarian translation There are two issues with the newly added translation:
Please apply the following changes:
Here's a suggested correction (please verify the Hungarian translation): - 'commom.elapsed_time': 'Elapsed Time',
+ 'common.elapsed_time': 'Eltelt idő', To ensure consistency across the codebase, let's check for any other occurrences of 'elapsed_time' in translation files: This will help us verify if the correct key is used in other language files and if they all have proper translations. 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Search for 'elapsed_time' in all translation files
rg --type typescript 'elapsed_time' apps/client/src/translation/languages/
Length of output: 109 Script: #!/bin/bash
# Search for 'elapsed_time' in all TypeScript translation files
rg --type ts 'elapsed_time' apps/client/src/translation/languages/
Length of output: 835 |
||
'countdown.ended': 'Esemény véget ért', | ||
'countdown.running': 'Esemény folyamatban', | ||
'countdown.select_event': 'Válassza ki a követendő eseményt', | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ export const langIt: TranslationObject = { | |
'common.stage_timer': 'Orologio Palco', | ||
'common.started_at': 'Iniziato Alle', | ||
'common.time_now': 'Ora attuale', | ||
'commom.elapsed_time': 'Elapsed Time', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Codebase verification Fix typos and translations across all language files Several issues were found with the translation keys and values across multiple language files:
Affected files:
Actions needed:
Suggested correction example: - 'commom.elapsed_time': 'Elapsed Time',
+ 'common.elapsed_time': 'Tempo trascorso', 🔗 Analysis chainFix typo and translation, and clarify relevance to PR objectives There are several issues with this new addition:
Please address these issues:
Here's a suggested correction for the Italian translation: - 'commom.elapsed_time': 'Elapsed Time',
+ 'common.elapsed_time': 'Tempo trascorso', To ensure consistency and completeness, let's check for similar keys in other language files: 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Search for 'elapsed_time' key in all language files
rg --type typescript 'elapsed_time' apps/client/src/translation/languages/
Length of output: 564 Script: #!/bin/bash
# Search for both correct and incorrect 'elapsed_time' keys in all TypeScript language files
rg --type typescript '(commom|common)\.elapsed_time' apps/client/src/translation/languages/
Length of output: 128 Script: #!/bin/bash
# Search for both correct and incorrect 'elapsed_time' keys in all TypeScript (.ts) language files
rg -g "*.ts" '(commom|common)\.elapsed_time' apps/client/src/translation/languages/
Length of output: 854 |
||
'countdown.ended': 'Evento finito alle', | ||
'countdown.running': 'Evento in corso', | ||
'countdown.select_event': 'Seleziona un evento da seguire', | ||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,27 @@ | ||||||
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', | ||||||
'commom.elapsed_time': 'TEMPO CORRIDO', | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix typo in translation key. There's a typo in the key 'commom.elapsed_time'. It should be 'common.elapsed_time'. Please apply the following change: - 'commom.elapsed_time': 'TEMPO CORRIDO',
+ 'common.elapsed_time': 'TEMPO CORRIDO', 📝 Committable suggestion
Suggested change
|
||||||
'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', | ||||||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codebase verification
Issue Detected: 'ptbr' Language Code Not Fully Integrated
The
ptbr
language code is added to the language selection dropdown but is not registered in the application's language configuration or localization files. This may prevent the application from properly handling Brazilian Portuguese language settings.'ptbr'
in the language configuration files.'ptbr'
to support Brazilian Portuguese translations.🔗 Analysis chain
LGTM! The changes align with the PR objectives.
The addition of the "Português Brasil" option and the indentation fix for the "Polish" option improve the language selection capabilities and code consistency. These changes successfully implement the PR's goal of adding Brazilian Portuguese language support.
To ensure consistency with the application's language handling system, please verify that the 'ptbr' language code is correctly recognized and implemented throughout the application. Run the following script to check for its usage:
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 930
Script:
Length of output: 441