updated translations keys
Signed-off-by: Piotr Piątkiewicz <piatkiewicz.piotr@gmail.com>
This commit is contained in:
@@ -14,8 +14,8 @@ export default _default;
|
||||
export const linguistTranslationRef: TranslationRef<
|
||||
'linguist',
|
||||
{
|
||||
readonly 'component.title': 'Languages';
|
||||
readonly 'component.noData': 'There is currently no language data for this entity.';
|
||||
readonly 'entityCard.title': 'Languages';
|
||||
readonly 'entityCard.noData': 'There is currently no language data for this entity.';
|
||||
}
|
||||
>;
|
||||
|
||||
|
||||
@@ -73,10 +73,10 @@ export const LinguistCard = () => {
|
||||
|
||||
if (items && items.languageCount === 0 && items.totalBytes === 0) {
|
||||
return (
|
||||
<InfoCard title={t('component.title')} className={classes.infoCard}>
|
||||
<InfoCard title={t('entityCard.title')} className={classes.infoCard}>
|
||||
<Grid container spacing={3}>
|
||||
<Box p={2}>
|
||||
<Typography>{t('component.noData')}</Typography>
|
||||
<Typography>{t('entityCard.noData')}</Typography>
|
||||
</Box>
|
||||
</Grid>
|
||||
</InfoCard>
|
||||
|
||||
@@ -19,7 +19,7 @@ import { createTranslationRef } from '@backstage/core-plugin-api/alpha';
|
||||
export const linguistTranslationRef = createTranslationRef({
|
||||
id: 'linguist',
|
||||
messages: {
|
||||
component: {
|
||||
entityCard: {
|
||||
title: 'Languages',
|
||||
noData: 'There is currently no language data for this entity.',
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user