Skip to content

Commit e2a32ae

Browse files
committed
feat(i18n): added it and ja support to plugins
Signed-off-by: Yi Cai <yicai@redhat.com>
1 parent db4aa2d commit e2a32ae

File tree

39 files changed

+3437
-1203
lines changed

39 files changed

+3437
-1203
lines changed

workspaces/adoption-insights/plugins/adoption-insights/src/translations/fr.ts

Lines changed: 58 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -18,89 +18,89 @@ import { createTranslationMessages } from '@backstage/core-plugin-api/alpha';
1818
import { adoptionInsightsTranslationRef } from './ref';
1919

2020
/**
21-
* French translation for Adoption Insights.
21+
* fr translation for plugin.adoption-insights.
2222
* @public
2323
*/
2424
const adoptionInsightsTranslationFr = createTranslationMessages({
2525
ref: adoptionInsightsTranslationRef,
2626
messages: {
27+
'page.title': 'Adoption Insights',
28+
'header.title': 'Adoption Insights',
29+
'header.dateRange.today': "Aujourd'hui",
30+
'header.dateRange.lastWeek': 'La semaine dernière',
31+
'header.dateRange.lastMonth': 'Mois dernier',
32+
'header.dateRange.last28Days': 'Les 28 derniers jours',
33+
'header.dateRange.lastYear': "L'année dernière",
34+
'header.dateRange.dateRange': 'Plage de dates...',
35+
'header.dateRange.cancel': 'Annuler',
36+
'header.dateRange.ok': 'OK',
37+
'header.dateRange.defaultLabel': 'Les 28 derniers jours',
38+
'header.dateRange.title': 'Intervalle de temps',
39+
'header.dateRange.startDate': 'Date de départ',
40+
'header.dateRange.endDate': 'Date de fin',
41+
'activeUsers.title': 'Utilisateurs actifs',
2742
'activeUsers.averagePrefix':
2843
"Le nombre moyen maximal d'utilisateurs actifs était de",
29-
'activeUsers.averageSuffix': ' pour cette période.',
3044
'activeUsers.averageText': '{{count}} par {{period}}',
31-
'activeUsers.day': 'jour',
45+
'activeUsers.averageSuffix': ' pour cette période.',
3246
'activeUsers.hour': 'heure',
47+
'activeUsers.day': 'jour',
48+
'activeUsers.week': 'semaine',
49+
'activeUsers.month': 'mois',
3350
'activeUsers.legend.newUsers': 'Nouveaux utilisateurs',
3451
'activeUsers.legend.returningUsers': 'Utilisateurs récurrents',
35-
'activeUsers.month': 'mois',
36-
'activeUsers.title': 'Utilisateurs actifs',
37-
'activeUsers.week': 'semaine',
38-
'catalogEntities.allTitle': 'Toutes les entités du catalogue',
52+
'templates.title': 'Meilleurs modèles',
53+
'templates.topNTitle': 'Meilleurs {{count}} modèles',
54+
'templates.allTitle': 'Tous les modèles',
3955
'catalogEntities.title': 'Principales entités du catalogue',
4056
'catalogEntities.topNTitle': 'Top {{count}} entités du catalogue',
41-
'common.csvFilename': 'utilisateurs_actifs',
42-
'common.downloading': 'Téléchargement...',
43-
'common.exportCSV': 'Exporter au format CSV',
44-
'common.filteredBy': 'filtré par',
45-
'common.invalidDateFormat': 'Format de date invalide',
46-
'common.noResults': 'Aucun résultat pour cette plage de dates.',
47-
'common.numberOfSearches': 'Nombre de recherches',
48-
'common.readMore': 'En savoir plus',
49-
'common.today': "Aujourd'hui",
50-
'common.yesterday': 'Hier',
51-
'filter.all': 'Tous',
52-
'filter.selectKind': 'Sélectionnez le type',
53-
'header.dateRange.cancel': 'Annuler',
54-
'header.dateRange.dateRange': 'Plage de dates...',
55-
'header.dateRange.defaultLabel': 'Les 28 derniers jours',
56-
'header.dateRange.endDate': 'Date de fin',
57-
'header.dateRange.last28Days': 'Les 28 derniers jours',
58-
'header.dateRange.lastMonth': 'Mois dernier',
59-
'header.dateRange.lastWeek': 'La semaine dernière',
60-
'header.dateRange.startDate': 'Date de début',
61-
'header.dateRange.lastYear': "L'année dernière",
62-
'header.dateRange.ok': 'OK',
63-
'header.dateRange.title': 'Plage de dates',
64-
'header.dateRange.today': "Aujourd'hui",
65-
'header.title': 'Adoption Insights',
66-
'page.title': 'Adoption Insights',
67-
'permission.description':
68-
'Pour afficher le plugin « Adoption Insights », contactez votre administrateur pour accorder les autorisations adoption-insights.events.read.',
69-
'permission.title': 'Autorisations manquantes',
70-
'plugins.allTitle': 'Tous les plugins',
57+
'catalogEntities.allTitle': 'Toutes les entités du catalogue',
7158
'plugins.title': 'Meilleurs plugins',
7259
'plugins.topNTitle': 'Meilleurs {{count}} plugins',
60+
'plugins.allTitle': 'Tous les plugins',
61+
'techDocs.title': 'Top TechDocs',
62+
'techDocs.topNTitle': 'Meilleurs {{count}} TechDocs',
63+
'techDocs.allTitle': 'Tous les TechDocs',
64+
'searches.title': 'Recherches les plus fréquentes',
65+
'searches.totalCount': '{{count}} recherches',
7366
'searches.averagePrefix': 'Le nombre moyen de recherches était de',
74-
'searches.averageSuffix': ' pour cette période.',
7567
'searches.averageText': '{{count}} par {{period}}',
76-
'searches.day': 'jour',
68+
'searches.averageSuffix': ' pour cette période.',
7769
'searches.hour': 'heure',
78-
'searches.month': 'mois',
79-
'searches.title': 'Recherches les plus fréquentes',
80-
'searches.totalCount': '{{count}} recherches',
70+
'searches.day': 'jour',
8171
'searches.week': 'semaine',
82-
'table.headers.entity': 'Entité',
83-
'table.headers.executions': 'Exécutions',
84-
'table.headers.kind': 'Gentil',
85-
'table.headers.lastUsed': 'Dernière utilisation',
86-
'table.headers.name': 'Nom',
87-
'table.headers.trend': "S'orienter",
88-
'table.headers.views': 'Vues',
89-
'table.pagination.topN': 'Meilleurs {{count}}',
90-
'techDocs.allTitle': 'Tous les TechDocs',
91-
'techDocs.title': 'Top TechDocs',
92-
'techDocs.topNTitle': 'Meilleurs {{count}} TechDocs',
93-
'templates.allTitle': 'Tous les modèles',
94-
'templates.title': 'Meilleurs modèles',
95-
'templates.topNTitle': 'Meilleurs {{count}} modèles',
72+
'searches.month': 'mois',
73+
'users.title': "Nombre total d'utilisateurs",
9674
'users.haveLoggedIn': 'se sont connectés',
75+
'users.loggedInUsers': 'Utilisateurs connectés',
9776
'users.licensed': 'Autorisé',
9877
'users.licensedNotLoggedIn': 'Sous licence (non connecté)',
99-
'users.loggedInUsers': 'Utilisateurs connectés',
10078
'users.ofTotal': 'de {{total}}',
101-
'users.title': "Nombre total d'utilisateurs",
10279
'users.tooltip':
10380
"Définissez le nombre d'utilisateurs sous licence dans le fichier app-config.yaml",
81+
'table.headers.name': 'Nom',
82+
'table.headers.kind': 'Type',
83+
'table.headers.lastUsed': 'Dernière utilisation',
84+
'table.headers.views': 'Vues',
85+
'table.headers.executions': 'Exécutions',
86+
'table.headers.trend': "S'orienter",
87+
'table.headers.entity': 'Entité',
88+
'table.pagination.topN': 'Top {{count}}',
89+
'filter.all': 'Tous',
90+
'filter.selectKind': 'Sélectionnez le type',
91+
'common.noResults': 'Aucun résultat pour cette plage de dates.',
92+
'common.readMore': 'En savoir plus',
93+
'common.exportCSV': 'Exporter au format CSV',
94+
'common.downloading': 'Téléchargement...',
95+
'common.today': "Aujourd'hui",
96+
'common.yesterday': 'Hier',
97+
'common.numberOfSearches': 'Nombre de recherches',
98+
'common.filteredBy': 'filtré par',
99+
'common.invalidDateFormat': 'Format de date invalide',
100+
'common.csvFilename': 'utilisateurs_actifs',
101+
'permission.title': 'Autorisations manquantes',
102+
'permission.description':
103+
'Pour afficher le plugin « Adoption Insights », contactez votre administrateur pour accorder les autorisations adoption-insights.events.read.',
104104
},
105105
});
106106

workspaces/adoption-insights/plugins/adoption-insights/src/translations/it.ts

Lines changed: 33 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { createTranslationMessages } from '@backstage/core-plugin-api/alpha';
1818
import { adoptionInsightsTranslationRef } from './ref';
1919

2020
/**
21-
* Italian translation for Adoption Insights.
21+
* Italian translation for plugin.adoption-insights.
2222
* @public
2323
*/
2424
const adoptionInsightsTranslationIt = createTranslationMessages({
@@ -27,20 +27,20 @@ const adoptionInsightsTranslationIt = createTranslationMessages({
2727
'page.title': 'Adoption Insights',
2828
'header.title': 'Adoption Insights',
2929
'header.dateRange.today': 'Oggi',
30-
'header.dateRange.lastWeek': 'Settimana scorsa',
31-
'header.dateRange.lastMonth': 'Mese scorso',
30+
'header.dateRange.lastWeek': 'La settimana scorsa',
31+
'header.dateRange.lastMonth': 'Il mese scorso',
3232
'header.dateRange.last28Days': 'Ultimi 28 giorni',
33-
'header.dateRange.lastYear': 'Anno scorso',
33+
'header.dateRange.lastYear': "L'anno scorso",
3434
'header.dateRange.dateRange': 'Intervallo di date...',
35-
'header.dateRange.cancel': 'Annulla',
35+
'header.dateRange.cancel': 'Cancella',
3636
'header.dateRange.ok': 'OK',
3737
'header.dateRange.defaultLabel': 'Ultimi 28 giorni',
3838
'header.dateRange.title': 'Intervallo di date',
3939
'header.dateRange.startDate': 'Data di inizio',
4040
'header.dateRange.endDate': 'Data di fine',
41-
'activeUsers.title': 'Utenti Attivi',
41+
'activeUsers.title': 'Utenti attivi',
4242
'activeUsers.averagePrefix':
43-
'Il numero medio di utenti attivi di picco era',
43+
'Il conteggio del picco medio di utenti attivi era',
4444
'activeUsers.averageText': '{{count}} per {{period}}',
4545
'activeUsers.averageSuffix': ' per questo periodo.',
4646
'activeUsers.hour': 'ora',
@@ -49,58 +49,59 @@ const adoptionInsightsTranslationIt = createTranslationMessages({
4949
'activeUsers.month': 'mese',
5050
'activeUsers.legend.newUsers': 'Nuovi utenti',
5151
'activeUsers.legend.returningUsers': 'Utenti di ritorno',
52-
'templates.title': 'Top template',
53-
'templates.topNTitle': 'Top {{count}} template',
54-
'templates.allTitle': 'Tutti i template',
55-
'catalogEntities.title': 'Top entità del catalogo',
56-
'catalogEntities.topNTitle': 'Top {{count}} entità del catalogo',
52+
'templates.title': 'Modelli più popolari',
53+
'templates.topNTitle': 'I {{count}} modelli più popolari',
54+
'templates.allTitle': 'Tutti i modelli',
55+
'catalogEntities.title': 'Entità del catalogo più popolari',
56+
'catalogEntities.topNTitle':
57+
'Le {{count}} entità del catalogo più popolari',
5758
'catalogEntities.allTitle': 'Tutte le entità del catalogo',
58-
'plugins.title': 'Top plugin',
59-
'plugins.topNTitle': 'Top {{count}} plugin',
59+
'plugins.title': 'I plugin più popolari',
60+
'plugins.topNTitle': 'I {{count}} plugin più popolari',
6061
'plugins.allTitle': 'Tutti i plugin',
61-
'techDocs.title': 'Top TechDocs',
62-
'techDocs.topNTitle': 'Top {{count}} TechDocs',
62+
'techDocs.title': 'TechDocs più popolari',
63+
'techDocs.topNTitle': 'I {{count}} TechDocs più popolari',
6364
'techDocs.allTitle': 'Tutti i TechDocs',
64-
'searches.title': 'Top ricerche',
65+
'searches.title': 'Ricerche più popolari',
6566
'searches.totalCount': '{{count}} ricerche',
66-
'searches.averagePrefix': 'Il numero medio di ricerche era',
67+
'searches.averagePrefix': 'Il conteggio medio delle ricerche era',
6768
'searches.averageText': '{{count}} per {{period}}',
6869
'searches.averageSuffix': ' per questo periodo.',
6970
'searches.hour': 'ora',
7071
'searches.day': 'giorno',
7172
'searches.week': 'settimana',
7273
'searches.month': 'mese',
7374
'users.title': 'Numero totale di utenti',
74-
'users.haveLoggedIn': 'hanno effettuato il login',
75-
'users.loggedInUsers': 'Utenti connessi',
75+
'users.haveLoggedIn': 'registrati',
76+
'users.loggedInUsers': 'Utenti registrati',
7677
'users.licensed': 'Con licenza',
77-
'users.licensedNotLoggedIn': 'Con licenza (non connessi)',
78-
'users.ofTotal': 'su {{total}}',
78+
'users.licensedNotLoggedIn': 'Con licenza (non registrato)',
79+
'users.ofTotal': 'di {{totale}}',
7980
'users.tooltip':
80-
'Imposta il numero di utenti con licenza nel file app-config.yaml',
81+
'Imposta il numero di utenti con licenza in app-config.yaml',
8182
'table.headers.name': 'Nome',
8283
'table.headers.kind': 'Tipo',
8384
'table.headers.lastUsed': 'Ultimo utilizzo',
8485
'table.headers.views': 'Visualizzazioni',
8586
'table.headers.executions': 'Esecuzioni',
8687
'table.headers.trend': 'Tendenza',
8788
'table.headers.entity': 'Entità',
88-
'table.pagination.topN': 'Top {{count}}',
89-
'filter.all': 'Tutti',
90-
'filter.selectKind': 'Seleziona tipo',
89+
'table.pagination.topN': '{{count}} più popolare',
90+
'filter.all': 'Tutto',
91+
'filter.selectKind': 'Selezionare il tipo',
9192
'common.noResults': 'Nessun risultato per questo intervallo di date.',
92-
'common.readMore': 'Leggi di più',
93+
'common.readMore': 'Per saperne di più',
9394
'common.exportCSV': 'Esporta CSV',
94-
'common.downloading': 'Download in corso...',
95+
'common.downloading': 'Scaricamento in corso...',
9596
'common.today': 'Oggi',
9697
'common.yesterday': 'Ieri',
9798
'common.numberOfSearches': 'Numero di ricerche',
98-
'common.filteredBy': 'filtrato per',
99+
'common.filteredBy': 'filtrato da',
99100
'common.invalidDateFormat': 'Formato data non valido',
100-
'common.csvFilename': 'utenti_attivi',
101-
'permission.title': 'Permessi mancanti',
101+
'common.csvFilename': 'active_users',
102+
'permission.title': 'Autorizzazioni mancanti',
102103
'permission.description':
103-
'Per visualizzare il plugin "Adoption Insights", contatta il tuo amministratore per ottenere i permessi adoption-insights.events.read.',
104+
'Per visualizzare il plugin "Adoption Insights", richiedere all\'amministratore le autorizzazioni adoption-insights.events.read.',
104105
},
105106
});
106107

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
/*
2+
* Copyright Red Hat, Inc.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
import { createTranslationMessages } from '@backstage/core-plugin-api/alpha';
18+
import { adoptionInsightsTranslationRef } from './ref';
19+
20+
/**
21+
* Japanese translation for plugin.adoption-insights.
22+
* @public
23+
*/
24+
const adoptionInsightsTranslationJa = createTranslationMessages({
25+
ref: adoptionInsightsTranslationRef,
26+
messages: {
27+
'page.title': 'Adoption Insights',
28+
'header.title': 'Adoption Insights',
29+
'header.dateRange.today': '今日',
30+
'header.dateRange.lastWeek': '先週',
31+
'header.dateRange.lastMonth': '先月',
32+
'header.dateRange.last28Days': '過去 28 日間',
33+
'header.dateRange.lastYear': '去年',
34+
'header.dateRange.dateRange': '日付範囲...',
35+
'header.dateRange.cancel': 'キャンセル',
36+
'header.dateRange.ok': 'OK',
37+
'header.dateRange.defaultLabel': '過去 28 日間',
38+
'header.dateRange.title': '日付範囲',
39+
'header.dateRange.startDate': '開始日',
40+
'header.dateRange.endDate': '終了日',
41+
'activeUsers.title': 'アクティブユーザー',
42+
'activeUsers.averagePrefix': '平均ピークアクティブユーザー数は',
43+
'activeUsers.averageText': '{{period}} あたり {{count}}',
44+
'activeUsers.averageSuffix': ' でした (対象期間中)。',
45+
'activeUsers.hour': '時間',
46+
'activeUsers.day': '日',
47+
'activeUsers.week': '週',
48+
'activeUsers.month': '月',
49+
'activeUsers.legend.newUsers': '新規ユーザー',
50+
'activeUsers.legend.returningUsers': 'リピートユーザー',
51+
'templates.title': '上位のテンプレート',
52+
'templates.topNTitle': '上位 {{count}} 件のテンプレート',
53+
'templates.allTitle': 'すべてのテンプレート',
54+
'catalogEntities.title': '上位のカタログエンティティー',
55+
'catalogEntities.topNTitle': '上位 {{count}} 件のカタログエンティティー',
56+
'catalogEntities.allTitle': 'すべてのカタログエンティティー',
57+
'plugins.title': '上位のプラグイン',
58+
'plugins.topNTitle': '上位 {{count}} 件のプラグイン',
59+
'plugins.allTitle': 'すべてのプラグイン',
60+
'techDocs.title': '上位の TechDocs',
61+
'techDocs.topNTitle': '上位 {{count}} 件の TechDocs',
62+
'techDocs.allTitle': 'すべての TechDocs',
63+
'searches.title': '上位の検索',
64+
'searches.totalCount': '{{count}} 件の検索',
65+
'searches.averagePrefix': '平均検索回数は',
66+
'searches.averageText': '{{period}} あたり {{count}}',
67+
'searches.averageSuffix': ' でした (対象期間中)。',
68+
'searches.hour': '時間',
69+
'searches.day': '日',
70+
'searches.week': '週',
71+
'searches.month': '月',
72+
'users.title': '総ユーザー数',
73+
'users.haveLoggedIn': 'ログイン済み',
74+
'users.loggedInUsers': 'ログイン済みユーザー',
75+
'users.licensed': 'ライセンス保有',
76+
'users.licensedNotLoggedIn': 'ライセンス保有 (ログインなし)',
77+
'users.ofTotal': '{{total}} 中',
78+
'users.tooltip': 'ライセンスユーザー数は app-config.yaml で設定します',
79+
'table.headers.name': '名前',
80+
'table.headers.kind': '種類',
81+
'table.headers.lastUsed': '最終使用',
82+
'table.headers.views': '表示回数',
83+
'table.headers.executions': '実行回数',
84+
'table.headers.trend': 'トレンド',
85+
'table.headers.entity': 'エンティティー',
86+
'table.pagination.topN': '上位 {{count}} 件',
87+
'filter.all': 'すべて',
88+
'filter.selectKind': '種類の選択',
89+
'common.noResults': 'この日付範囲の結果はありません。',
90+
'common.readMore': 'さらに表示する',
91+
'common.exportCSV': 'CSV エクスポート',
92+
'common.downloading': 'ダウンロード中...',
93+
'common.today': '今日',
94+
'common.yesterday': '昨日',
95+
'common.numberOfSearches': '検索数',
96+
'common.filteredBy': 'フィルタリング条件',
97+
'common.invalidDateFormat': '無効な日付形式',
98+
'common.csvFilename': 'active_users',
99+
'permission.title': '権限の不足',
100+
'permission.description':
101+
'"Adoption Insights" プラグインを表示するには、管理者に連絡して adoption-insights.events.read 権限を付与してもらうよう依頼してください。',
102+
},
103+
});
104+
105+
export default adoptionInsightsTranslationJa;

0 commit comments

Comments
 (0)