Skip to content

Commit

Permalink
Update sidebar & add missing translation
Browse files Browse the repository at this point in the history
  • Loading branch information
Exitare committed Jan 16, 2025
1 parent d2267b2 commit 7d6d8fb
Show file tree
Hide file tree
Showing 20 changed files with 136 additions and 22 deletions.
10 changes: 9 additions & 1 deletion apps/keira/src/assets/i18n/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,11 @@
"TITLE": "Zauber-DBC-Overrides",
"SEARCH_SPELL": "Zauber suchen",
"SPELL_DBC_EDITOR": "Zauber-DBC-Editor"
},
"GAME_TELE": {
"TITLE": "Game Teleport",
"SEARCH_GAME_TELE": "Search Teleport",
"SELECT_GAME_TELE": "Game Tele Editor"
}
},
"DASHBOARD": {
Expand Down Expand Up @@ -862,5 +867,8 @@
"SPELL_PRIORITY": "Unknown. Only used value is 50 for some spells.",
"REQUIRED_AURA_VISION": "Unknown. Only 16 Spells use another value as 0. Could be used for visual effects."
}
},
"GAME_TELE": {
"EDITOR": "Teleport Editor"
}
}
}
10 changes: 9 additions & 1 deletion apps/keira/src/assets/i18n/el.json
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,11 @@
"TITLE": "Spell DBC overrides",
"SEARCH_SPELL": "Search Spell",
"SPELL_DBC_EDITOR": "Spell DBC editor"
},
"GAME_TELE": {
"TITLE": "Game Teleport",
"SEARCH_GAME_TELE": "Search Teleport",
"SELECT_GAME_TELE": "Game Tele Editor"
}
},
"DASHBOARD": {
Expand Down Expand Up @@ -862,5 +867,8 @@
"SPELL_PRIORITY": "Unknown. Only used value is 50 for some spells.",
"REQUIRED_AURA_VISION": "Unknown. Only 16 Spells use another value as 0. Could be used for visual effects."
}
},
"GAME_TELE": {
"EDITOR": "Teleport Editor"
}
}
}
7 changes: 2 additions & 5 deletions apps/keira/src/assets/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@
"GAME_TELE": {
"TITLE": "Game Teleport",
"SEARCH_GAME_TELE": "Search Teleport",
"GAME_TELE_EDITOR": "Game Tele Editor"
"SELECT_GAME_TELE": "Game Tele Editor"
}
},
"DASHBOARD": {
Expand Down Expand Up @@ -869,9 +869,6 @@
}
},
"GAME_TELE": {
"BASE": {
"ID": "The unique ID for the teleport.",
"MAP_ID": "The ID of the map that the teleport leads to."
}
"EDITOR": "Teleport Editor"
}
}
10 changes: 9 additions & 1 deletion apps/keira/src/assets/i18n/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,11 @@
"TITLE": "Anulaciones de Hechizos (Spell DBC)",
"SEARCH_SPELL": "Buscar Hechizos",
"SPELL_DBC_EDITOR": "Editor de Hechizos (Spell DBC)"
},
"GAME_TELE": {
"TITLE": "Game Teleport",
"SEARCH_GAME_TELE": "Search Teleport",
"SELECT_GAME_TELE": "Game Tele Editor"
}
},
"DASHBOARD": {
Expand Down Expand Up @@ -862,5 +867,8 @@
"SPELL_PRIORITY": "Desconocido. Sólo se usa el valor 50 para algunos hechizos.",
"REQUIRED_AURA_VISION": "Desconocido. Sólo 16 hechizos usan otro valor como 0. Podría ser usado para efectos visuales."
}
},
"GAME_TELE": {
"EDITOR": "Teleport Editor"
}
}
}
10 changes: 9 additions & 1 deletion apps/keira/src/assets/i18n/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,11 @@
"TITLE": "Spell DBC overrides",
"SEARCH_SPELL": "Search Spell",
"SPELL_DBC_EDITOR": "Spell DBC editor"
},
"GAME_TELE": {
"TITLE": "Game Teleport",
"SEARCH_GAME_TELE": "Search Teleport",
"SELECT_GAME_TELE": "Game Tele Editor"
}
},
"DASHBOARD": {
Expand Down Expand Up @@ -862,5 +867,8 @@
"SPELL_PRIORITY": "Unknown. Only used value is 50 for some spells.",
"REQUIRED_AURA_VISION": "Unknown. Only 16 Spells use another value as 0. Could be used for visual effects."
}
},
"GAME_TELE": {
"EDITOR": "Teleport Editor"
}
}
}
10 changes: 9 additions & 1 deletion apps/keira/src/assets/i18n/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,11 @@
"TITLE": "Spell DBC overrides",
"SEARCH_SPELL": "Search Spell",
"SPELL_DBC_EDITOR": "Spell DBC editor"
},
"GAME_TELE": {
"TITLE": "Game Teleport",
"SEARCH_GAME_TELE": "Search Teleport",
"SELECT_GAME_TELE": "Game Tele Editor"
}
},
"DASHBOARD": {
Expand Down Expand Up @@ -862,5 +867,8 @@
"SPELL_PRIORITY": "Unknown. Only used value is 50 for some spells.",
"REQUIRED_AURA_VISION": "Unknown. Only 16 Spells use another value as 0. Could be used for visual effects."
}
},
"GAME_TELE": {
"EDITOR": "Teleport Editor"
}
}
}
10 changes: 9 additions & 1 deletion apps/keira/src/assets/i18n/ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,11 @@
"TITLE": "Spell DBC overrides",
"SEARCH_SPELL": "Search Spell",
"SPELL_DBC_EDITOR": "Spell DBC editor"
},
"GAME_TELE": {
"TITLE": "Game Teleport",
"SEARCH_GAME_TELE": "Search Teleport",
"SELECT_GAME_TELE": "Game Tele Editor"
}
},
"DASHBOARD": {
Expand Down Expand Up @@ -862,5 +867,8 @@
"SPELL_PRIORITY": "Unknown. Only used value is 50 for some spells.",
"REQUIRED_AURA_VISION": "Unknown. Only 16 Spells use another value as 0. Could be used for visual effects."
}
},
"GAME_TELE": {
"EDITOR": "Teleport Editor"
}
}
}
10 changes: 9 additions & 1 deletion apps/keira/src/assets/i18n/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,11 @@
"TITLE": "Spell DBC overrides",
"SEARCH_SPELL": "Search Spell",
"SPELL_DBC_EDITOR": "Spell DBC editor"
},
"GAME_TELE": {
"TITLE": "Game Teleport",
"SEARCH_GAME_TELE": "Search Teleport",
"SELECT_GAME_TELE": "Game Tele Editor"
}
},
"DASHBOARD": {
Expand Down Expand Up @@ -862,5 +867,8 @@
"SPELL_PRIORITY": "Unknown. Only used value is 50 for some spells.",
"REQUIRED_AURA_VISION": "Unknown. Only 16 Spells use another value as 0. Could be used for visual effects."
}
},
"GAME_TELE": {
"EDITOR": "Teleport Editor"
}
}
}
10 changes: 9 additions & 1 deletion apps/keira/src/assets/i18n/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,11 @@
"TITLE": "Spell DBC overrides",
"SEARCH_SPELL": "Search Spell",
"SPELL_DBC_EDITOR": "Spell DBC editor"
},
"GAME_TELE": {
"TITLE": "Game Teleport",
"SEARCH_GAME_TELE": "Search Teleport",
"SELECT_GAME_TELE": "Game Tele Editor"
}
},
"DASHBOARD": {
Expand Down Expand Up @@ -862,5 +867,8 @@
"SPELL_PRIORITY": "Unknown. Only used value is 50 for some spells.",
"REQUIRED_AURA_VISION": "Unknown. Only 16 Spells use another value as 0. Could be used for visual effects."
}
},
"GAME_TELE": {
"EDITOR": "Teleport Editor"
}
}
}
10 changes: 9 additions & 1 deletion apps/keira/src/assets/i18n/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,11 @@
"TITLE": "Spell DBC overrides",
"SEARCH_SPELL": "Procurar Spell",
"SPELL_DBC_EDITOR": "Spell DBC editor"
},
"GAME_TELE": {
"TITLE": "Game Teleport",
"SEARCH_GAME_TELE": "Search Teleport",
"SELECT_GAME_TELE": "Game Tele Editor"
}
},
"DASHBOARD": {
Expand Down Expand Up @@ -862,5 +867,8 @@
"SPELL_PRIORITY": "Desconhecido. O único valor usado é 50 para alguns spells.",
"REQUIRED_AURA_VISION": "Desconhecido. Somente 16 Spells usam um valor diferente de 0. Talvez é usado para efeitos visuais."
}
},
"GAME_TELE": {
"EDITOR": "Teleport Editor"
}
}
}
10 changes: 9 additions & 1 deletion apps/keira/src/assets/i18n/ro.json
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,11 @@
"TITLE": "Spell DBC overrides",
"SEARCH_SPELL": "Search Spell",
"SPELL_DBC_EDITOR": "Spell DBC editor"
},
"GAME_TELE": {
"TITLE": "Game Teleport",
"SEARCH_GAME_TELE": "Search Teleport",
"SELECT_GAME_TELE": "Game Tele Editor"
}
},
"DASHBOARD": {
Expand Down Expand Up @@ -862,5 +867,8 @@
"SPELL_PRIORITY": "Unknown. Only used value is 50 for some spells.",
"REQUIRED_AURA_VISION": "Unknown. Only 16 Spells use another value as 0. Could be used for visual effects."
}
},
"GAME_TELE": {
"EDITOR": "Teleport Editor"
}
}
}
10 changes: 9 additions & 1 deletion apps/keira/src/assets/i18n/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,11 @@
"TITLE": "Spell DBC overrides",
"SEARCH_SPELL": "Искать заклинание",
"SPELL_DBC_EDITOR": "Редактор Spell DBC"
},
"GAME_TELE": {
"TITLE": "Game Teleport",
"SEARCH_GAME_TELE": "Search Teleport",
"SELECT_GAME_TELE": "Game Tele Editor"
}
},
"DASHBOARD": {
Expand Down Expand Up @@ -862,5 +867,8 @@
"SPELL_PRIORITY": "Unknown. Only used value is 50 for some spells.",
"REQUIRED_AURA_VISION": "Unknown. Only 16 Spells use another value as 0. Could be used for visual effects."
}
},
"GAME_TELE": {
"EDITOR": "Teleport Editor"
}
}
}
10 changes: 9 additions & 1 deletion apps/keira/src/assets/i18n/sk.json
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,11 @@
"TITLE": "Spell DBC overrides",
"SEARCH_SPELL": "Search Spell",
"SPELL_DBC_EDITOR": "Spell DBC editor"
},
"GAME_TELE": {
"TITLE": "Game Teleport",
"SEARCH_GAME_TELE": "Search Teleport",
"SELECT_GAME_TELE": "Game Tele Editor"
}
},
"DASHBOARD": {
Expand Down Expand Up @@ -862,5 +867,8 @@
"SPELL_PRIORITY": "Unknown. Only used value is 50 for some spells.",
"REQUIRED_AURA_VISION": "Unknown. Only 16 Spells use another value as 0. Could be used for visual effects."
}
},
"GAME_TELE": {
"EDITOR": "Teleport Editor"
}
}
}
10 changes: 9 additions & 1 deletion apps/keira/src/assets/i18n/sv.json
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,11 @@
"TITLE": "Spell DBC overrides",
"SEARCH_SPELL": "Search Spell",
"SPELL_DBC_EDITOR": "Spell DBC editor"
},
"GAME_TELE": {
"TITLE": "Game Teleport",
"SEARCH_GAME_TELE": "Search Teleport",
"SELECT_GAME_TELE": "Game Tele Editor"
}
},
"DASHBOARD": {
Expand Down Expand Up @@ -862,5 +867,8 @@
"SPELL_PRIORITY": "Unknown. Only used value is 50 for some spells.",
"REQUIRED_AURA_VISION": "Unknown. Only 16 Spells use another value as 0. Could be used for visual effects."
}
},
"GAME_TELE": {
"EDITOR": "Teleport Editor"
}
}
}
10 changes: 9 additions & 1 deletion apps/keira/src/assets/i18n/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,11 @@
"TITLE": "技能DBC修改",
"SEARCH_SPELL": "搜索技能",
"SPELL_DBC_EDITOR": "技能DBC编辑"
},
"GAME_TELE": {
"TITLE": "Game Teleport",
"SEARCH_GAME_TELE": "Search Teleport",
"SELECT_GAME_TELE": "Game Tele Editor"
}
},
"DASHBOARD": {
Expand Down Expand Up @@ -862,5 +867,8 @@
"SPELL_PRIORITY": "未知...某些法术的唯一使用的值是50。",
"REQUIRED_AURA_VISION": "未知...只有16个法术使用,其他均为0,可以用于视觉效果。"
}
},
"GAME_TELE": {
"EDITOR": "Teleport Editor"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</div>
<form [formGroup]="editorService.form" class="form-group edit-form">
<div class="content-block">
<span class="category-title" [translate]="'GAME_TELE.BASE.BASE'"></span>
<span class="category-title" [translate]="'GAME_TELE.EDITOR'"></span>
<div class="row">
<div class="form-group col-12 col-sm-6 col-md-4 col-lg-3 col-xl-2">
<label class="control-label" for="id">ID</label>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
<div class="form-group col-sm-6 col-md-4 col-lg-2 col-xl-2">
<input formControlName="name" class="form-control form-control-sm" id="name" placeholder="Name" />
</div>
<div class="form-group col-12 col-sm-6 col-md-4 col-lg-3 col-xl-2">
<input [formControlName]="'map'" id="map" type="number" class="form-control form-control-sm" placeholder="Map Id" />
</div>
</ng-container>
<div class="form-group col-sm-6 col-md-4 col-lg-3 col-xl-2">
<input formControlName="limit" class="form-control form-control-sm" id="limit" placeholder="Limit" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { GameTeleHandlerService } from '../game-tele-handler.service';
import { SelectGameTeleService } from './select-game-tele.service';
import { WIKI_BASE_URL } from '@keira/shared/constants';
import { CreateComponent, HighlightjsWrapperComponent, TopBarComponent } from '@keira/shared/base-editor-components';
import { MapSelectorBtnComponent } from '@keira/shared/selectors';

@Component({
changeDetection: ChangeDetectionStrategy.OnPush,
Expand All @@ -21,6 +22,7 @@ import { CreateComponent, HighlightjsWrapperComponent, TopBarComponent } from '@
CreateComponent,
HighlightjsWrapperComponent,
TopBarComponent,
MapSelectorBtnComponent,
],
})
export class SelectGameTeleComponent extends SelectComponent<GameTele> {
Expand Down
2 changes: 1 addition & 1 deletion libs/main/main-window/src/sidebar/sidebar.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,7 @@
@if (gameTeleHandlerService.selected) {
<li>
<a href="#" routerLinkActive="active" [routerLink]="'game-tele/tele'">
{{ 'SIDEBAR.GAME_TELE.GAME_TELE_EDITOR' | translate }}
{{ 'SIDEBAR.GAME_TELE.SELECT_GAME_TELE' | translate }}
@if (gameTeleHandlerService.isGameTeleUnsaved) {
<keira-unsaved-icon />
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export const GAME_TELE_CUSTOM_STARTING_ID = 10_000;
export const GAME_TELE_TABLE = 'game_tele';
export const GAME_TELE_ID = 'id';
export const GAME_TELE_NAME = 'name';
export const GAME_TELE_SEARCH_FIELDS = ['id', 'name'];
export const GAME_TELE_SEARCH_FIELDS = ['id', 'name', 'map'];

export class GameTele extends TableRow {
id: number = 0;
Expand Down

0 comments on commit 7d6d8fb

Please sign in to comment.