Skip to content

Commit b6af5b6

Browse files
feat(about): link to French README when UI language is French
The About modal source-code link points at README_fr.md when lang is 'fr', otherwise the repo root as before. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent a34c4cc commit b6af5b6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/ui/src/App.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ function truncateFilename(filename, maxLength = 40) {
401401
}
402402

403403
export default function App() {
404-
const { t } = useI18n();
404+
const { t, lang } = useI18n();
405405
const repoId = CONFIG.VITE_MODEL_REPO || 'istupakov/parakeet-tdt-0.6b-v3-onnx';
406406
// Where model weights are served from:
407407
// 'hf' : HuggingFace only (default)
@@ -3636,7 +3636,7 @@ export default function App() {
36363636
<p>{t('infoDescription2')}</p>
36373637
<p style={{ fontSize: '0.85rem', marginTop: '1rem', marginBottom: 0 }}>
36383638
<strong>{t('sourceCode')}:</strong>{' '}
3639-
<a href="https://github.com/thiswillbeyourgithub/parakeet_web" target="_blank" rel="noopener noreferrer">ParakeetWeb</a>
3639+
<a href={lang === 'fr' ? 'https://github.com/thiswillbeyourgithub/parakeet_web/blob/master/README_fr.md' : 'https://github.com/thiswillbeyourgithub/parakeet_web'} target="_blank" rel="noopener noreferrer">ParakeetWeb</a>
36403640
</p>
36413641
<p style={{ fontSize: '0.85rem', marginTop: '0.5rem', marginBottom: 0 }}>
36423642
<strong>{t('feedback')}:</strong> {t('feedbackText')}{' '}

0 commit comments

Comments
 (0)