Skip to content

Commit

Permalink
VCST-2207: fix localization
Browse files Browse the repository at this point in the history
fix: fix menu and blade title localization
  • Loading branch information
OlegoO committed Dec 26, 2024
1 parent 333f3d6 commit beed2e7
Show file tree
Hide file tree
Showing 14 changed files with 312 additions and 282 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"customerReviews": {
"main-menu-title": "Bewertungen und Rezensionen",
"blades": {
"review-list": {
"title": "Produktbewertungen",
Expand All @@ -21,6 +22,7 @@
}
},
"review-detail": {
"title": "Rezension",
"labels": {
"title": "Titel",
"content": "Inhalt",
Expand Down Expand Up @@ -119,4 +121,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"customerReviews": {
"main-menu-title": "Rating and Reviews",
"blades": {
"review-list": {
"title": "Product reviews",
Expand All @@ -21,6 +22,7 @@
}
},
"review-detail": {
"title": "Review",
"labels": {
"title": "Title",
"content": "Content",
Expand Down Expand Up @@ -119,4 +121,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"customerReviews": {
"main-menu-title": "Calificación y Reseñas",
"blades": {
"review-list": {
"title": "Reseñas de productos",
Expand All @@ -21,6 +22,7 @@
}
},
"review-detail": {
"title": "Reseña",
"labels": {
"title": "Título",
"content": "Contenido",
Expand Down Expand Up @@ -119,4 +121,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"customerReviews": {
"main-menu-title": "Évaluation et Avis",
"blades": {
"review-list": {
"title": "Avis sur le produit",
Expand All @@ -21,6 +22,7 @@
}
},
"review-detail": {
"title": "Avis",
"labels": {
"title": "Titre",
"content": "Contenu",
Expand Down Expand Up @@ -119,4 +121,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"customerReviews": {
"main-menu-title": "Valutazioni e Recensioni",
"blades": {
"review-list": {
"title": "Recensioni del prodotto",
Expand All @@ -21,6 +22,7 @@
}
},
"review-detail": {
"title": "Recensione",
"labels": {
"title": "Titolo",
"content": "Contenuto",
Expand Down Expand Up @@ -119,4 +121,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"customerReviews": {
"main-menu-title": "評価とレビュー",
"blades": {
"review-list": {
"title": "製品レビュー",
Expand All @@ -21,6 +22,7 @@
}
},
"review-detail": {
"title": "レビュー",
"labels": {
"title": "タイトル",
"content": "内容",
Expand Down Expand Up @@ -119,4 +121,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"customerReviews": {
"main-menu-title": "Oceny i Recenzje",
"blades": {
"review-list": {
"title": "Opinie o produkcie",
Expand All @@ -21,6 +22,7 @@
}
},
"review-detail": {
"title": "Recenzja",
"labels": {
"title": "Tytuł",
"content": "Treść",
Expand Down Expand Up @@ -119,4 +121,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"customerReviews": {
"main-menu-title": "Avaliações e Classificações",
"blades": {
"review-list": {
"title": "Avaliações de produtos",
Expand All @@ -21,6 +22,7 @@
}
},
"review-detail": {
"title": "Avaliação",
"labels": {
"title": "Título",
"content": "Conteúdo",
Expand Down Expand Up @@ -119,4 +121,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"customerReviews": {
"main-menu-title": "Рейтинг и отзывы",
"blades": {
"review-list": {
"title": "Отзывы о продукте",
Expand All @@ -21,6 +22,7 @@
}
},
"review-detail": {
"title": "Отзыв",
"labels": {
"title": "Заголовок",
"content": "Содержание",
Expand Down Expand Up @@ -119,4 +121,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"customerReviews": {
"main-menu-title": "评分和评论",
"blades": {
"review-list": {
"title": "产品评论",
Expand All @@ -21,6 +22,7 @@
}
},
"review-detail": {
"title": "评论",
"labels": {
"title": "标题",
"content": "内容",
Expand Down Expand Up @@ -119,4 +121,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ angular.module(moduleTemplateName, [])
var menuItemNewReviews = {
path: 'browse/customerReviewsNew',
icon: 'fa fa-comments',
title: 'Rating and Reviews',
title: 'customerReviews.main-menu-title',
priority: 100,
action: function () { $state.go('workspace.customerReviews') },
permission: 'customerReviews:read'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,20 @@ angular.module('VirtoCommerce.CustomerReviews')
id: 'reviewDetails',
currentEntityId: data.id,
currentEntity: angular.copy(data),
title: 'Customer review',
title: 'customerReviews.blades.review-detail.title',
controller: 'VirtoCommerce.CustomerReviews.reviewDetailController',
template: 'Modules/$(VirtoCommerce.CustomerReviews)/Scripts/blades/review-detail.tpl.html'
};
bladeNavigationService.showBlade(newBlade, blade);
}

blade.headIcon = 'fa fa-comments';
blade.title = 'Rating and Reviews';
blade.title = 'customerReviews.main-menu-title';

blade.toolbarCommands = [
{
name: "platform.commands.refresh", icon: 'fa fa-refresh',
name: 'platform.commands.refresh',
icon: 'fa fa-refresh',
executeMethod: blade.refresh,
canExecuteMethod: function () {
return true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ angular.module('VirtoCommerce.CustomerReviews')

var newBlade = {
id: 'sellerReviewsList',
title: 'Customer review',
title: 'customerReviews.blades.review-detail.title',
controller: 'VirtoCommerce.CustomerReviews.reviewsListController',
template: 'Modules/$(VirtoCommerce.CustomerReviews)/Scripts/blades/reviews-list.tpl.html',
filter: { entityIds: [productId], entityType: 'Product' }
Expand Down
Loading

0 comments on commit beed2e7

Please sign in to comment.