-
-
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 all 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('common.elapsed_time')}</span> | ||
<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> | ||
|
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