Skip to content

Commit

Permalink
display number of commands in extension list
Browse files Browse the repository at this point in the history
  • Loading branch information
x87 committed May 18, 2023
1 parent 5a266d2 commit 500ff6b
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ <h5>{{ "ui.extensionList.title" | translate }}</h5>
<pre
*ngIf="extensions.length; else noExtensions"
class="sample"
><div *ngFor="let extension of extensions"><a [routerLink]="['/', game, extension.name]">{{ extension.name }}</a></div></pre>
><div *ngFor="let extension of extensions"><a [routerLink]="['/', game, extension.name]">{{ extension.name }}</a> <span class="secondary">({{ "ui.extensionList.numCommands" | translate: { total: extension.commands.length } }})</span></div></pre>
</div>

<ng-template #noExtensions>
Expand Down
3 changes: 2 additions & 1 deletion editor/src/assets/i18n/bn.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@
},
"extensionList": {
"title": "Extensions",
"noExtensions": "* No extensions yet *"
"noExtensions": "* No extensions yet *",
"numCommands": "{{ total }} commands"
},
"shared": {
"resetChanges": "সকল পরিবর্তন মুছে ফেলুন",
Expand Down
3 changes: 2 additions & 1 deletion editor/src/assets/i18n/cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@
},
"extensionList": {
"title": "拓展",
"noExtensions": "* 暂无扩展 *"
"noExtensions": "* 暂无扩展 *",
"numCommands": "{{ total }} commands"
},
"shared": {
"resetChanges": "重置所有更改",
Expand Down
3 changes: 2 additions & 1 deletion editor/src/assets/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@
},
"extensionList": {
"title": "Extensions",
"noExtensions": "* No extensions yet *"
"noExtensions": "* No extensions yet *",
"numCommands": "{{ total }} commands"
},
"shared": {
"resetChanges": "Reset all changes",
Expand Down
3 changes: 2 additions & 1 deletion editor/src/assets/i18n/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@
},
"extensionList": {
"title": "Extensions",
"noExtensions": "* No extensions yet *"
"noExtensions": "* No extensions yet *",
"numCommands": "{{ total }} commands"
},
"shared": {
"resetChanges": "Resetear todos los cambios",
Expand Down
3 changes: 2 additions & 1 deletion editor/src/assets/i18n/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@
},
"extensionList": {
"title": "Extensions",
"noExtensions": "* No extensions yet *"
"noExtensions": "* No extensions yet *",
"numCommands": "{{ total }} commands"
},
"shared": {
"resetChanges": "Réinitialiser tous les changements",
Expand Down
3 changes: 2 additions & 1 deletion editor/src/assets/i18n/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@
},
"extensionList": {
"title": "Расширения",
"noExtensions": "* Расширения отсутствуют *"
"noExtensions": "* Расширения отсутствуют *",
"numCommands": "{{ total }} команд"
},
"shared": {
"resetChanges": "Сбросить все",
Expand Down
3 changes: 2 additions & 1 deletion editor/src/assets/i18n/tr.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@
},
"extensionList": {
"title": "Uzantılar",
"noExtensions": "* Henüz uzantı yok "
"noExtensions": "* Henüz uzantı yok ",
"numCommands": "{{ total }} commands"
},
"shared": {
"resetChanges": "Tüm değişiklikleri sıfırla",
Expand Down
3 changes: 2 additions & 1 deletion editor/src/assets/i18n/tw-cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@
},
"extensionList": {
"title": "拓展",
"noExtensions": "* 暫無拓展 *"
"noExtensions": "* 暫無拓展 *",
"numCommands": "{{ total }} commands"
},
"shared": {
"resetChanges": "重置所有更改",
Expand Down
4 changes: 4 additions & 0 deletions editor/src/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ pre.sample {
color: $yellow;
}

.secondary {
color: $color-secondary;
}

pre.sample {
margin-bottom: 0;
border: 1px dotted;
Expand Down

0 comments on commit 500ff6b

Please sign in to comment.