Skip to content
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@red-hat-developer-hub/backstage-plugin-quickstart': patch
---

Localize the Quickstart help snackbar message.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export const quickstartTranslationRef: TranslationRef<
readonly 'steps.findAllLearningPaths.title': string;
readonly 'steps.findAllLearningPaths.description': string;
readonly 'steps.findAllLearningPaths.ctaTitle': string;
readonly 'snackbar.helpPrompt': string;
readonly 'dev.pageTitle': string;
readonly 'dev.pageDescription': string;
readonly 'dev.drawerControls': string;
Expand Down
1 change: 1 addition & 0 deletions workspaces/quickstart/plugins/quickstart/report.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ export const quickstartTranslationRef: TranslationRef<
readonly 'steps.findAllLearningPaths.title': string;
readonly 'steps.findAllLearningPaths.description': string;
readonly 'steps.findAllLearningPaths.ctaTitle': string;
readonly 'snackbar.helpPrompt': string;
readonly 'dev.pageTitle': string;
readonly 'dev.pageDescription': string;
readonly 'dev.drawerControls': string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import { QuickstartDrawerContext } from './QuickstartDrawerContext';
import { QuickstartItemData } from '../types';
import { filterQuickstartItemsByRole } from '../utils';
import { useQuickstartRole } from '../hooks/useQuickstartRole';
import { useTranslation } from '../hooks/useTranslation';

/**
* Provider component for the Quickstart Drawer functionality
Expand All @@ -40,6 +41,7 @@ export const QuickstartDrawerProvider = ({ children }: PropsWithChildren) => {
const [userKey, setUserKey] = useState<string>('guest');
const identityApi = useApi(identityApiRef);
const configApi = useApi(configApiRef);
const { t } = useTranslation();

// Determine role once at provider level to avoid re-fetching on drawer open/close
const { isLoading: roleLoading, userRole } = useQuickstartRole();
Expand Down Expand Up @@ -187,7 +189,7 @@ export const QuickstartDrawerProvider = ({ children }: PropsWithChildren) => {
autoHideDuration={10000}
onClose={handleNotificationClose}
anchorOrigin={{ vertical: 'top', horizontal: 'right' }}
message="Need help? Visit the Quick Start Guide by clicking on this (?) icon in the header!"
message={t('snackbar.helpPrompt')}
action={
<IconButton
size="small"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ const quickstartTranslationDe = createTranslationMessages({
'button.openQuickstartGuide': 'Schnellstartanleitung öffnen',
'button.closeDrawer': 'Drawer schließen',
'button.gotIt': 'Verstanden!',
'snackbar.helpPrompt':
'Brauchen Sie Hilfe? Öffnen Sie die Schnellstartanleitung, indem Sie auf das (?) Symbol in der Kopfzeile klicken!',
'footer.progress': '{{progress}} % Fortschritt',
'footer.notStarted': 'Nicht gestartet',
'footer.hide': 'Ausblenden',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ const quickstartTranslationEs = createTranslationMessages({
'button.openQuickstartGuide': 'Abrir la Guía de inicio rápido',
'button.closeDrawer': 'Cerrar panel',
'button.gotIt': '¡Entendido!',
'snackbar.helpPrompt':
'¿Necesita ayuda? Visite la Guía de inicio rápido haciendo clic en el icono (?) del encabezado.',
'footer.progress': 'Progreso del {{progress}} %',
'footer.notStarted': 'No iniciado',
'footer.hide': 'Ocultar',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ const quickstartTranslationFr = createTranslationMessages({
'button.openQuickstartGuide': 'Ouvrir le guide de démarrage rapide',
'button.closeDrawer': 'Fermer le tiroir',
'button.gotIt': "J'ai compris!",
'snackbar.helpPrompt':
'Besoin d’aide ? Consultez le guide de démarrage rapide en cliquant sur l’icône (?) dans l’en-tête !',
'footer.progress': '{{progress}}% de progrès',
'footer.notStarted': 'Non démarré',
'footer.hide': 'Cacher',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ const quickstartTranslationIt = createTranslationMessages({
'button.openQuickstartGuide': "Apri la Guida all'avvio rapido",
'button.closeDrawer': 'Chiudi riquadro',
'button.gotIt': 'Ho capito!',
'snackbar.helpPrompt':
"Hai bisogno di aiuto? Apri la Guida all'avvio rapido facendo clic sull'icona (?) nell'intestazione.",
'footer.progress': '{{progress}}% di avanzamento',
'footer.notStarted': 'Non iniziato',
'footer.hide': 'Nascondi',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ const quickstartTranslationJa = createTranslationMessages({
'button.openQuickstartGuide': 'クイックスタートガイドを開く',
'button.closeDrawer': 'ドロワーを閉じる',
'button.gotIt': '了解しました!',
'snackbar.helpPrompt':
'ヘルプが必要ですか? ヘッダーの (?) アイコンをクリックしてクイックスタートガイドを開いてください。',
'footer.progress': '進捗 {{progress}}%',
'footer.notStarted': '開始されていません',
'footer.hide': '非表示',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ export const quickstartMessages = {
closeDrawer: 'Close Drawer',
gotIt: 'Got it!',
},
snackbar: {
helpPrompt:
'Need help? Visit the Quick Start Guide by clicking on this (?) icon in the header!',
},
footer: {
progress: '{{progress}}% progress',
notStarted: 'Not started',
Expand Down
Loading