Improve i18n

This commit is contained in:
cuigh 2018-04-10 12:50:22 +08:00
parent a10053168a
commit bca5d6d01d
6 changed files with 11 additions and 7 deletions

View File

@ -24,6 +24,8 @@ button.restart: Restart
button.previous: Previous button.previous: Previous
button.next: Next button.next: Next
button.import: Import button.import: Import
button.export: Export
button.more: More
# field # field
field.name: Name field.name: Name

View File

@ -24,6 +24,8 @@ button.restart: 重启
button.previous: 前一页 button.previous: 前一页
button.next: 后一页 button.next: 后一页
button.import: 导入 button.import: 导入
button.export: 导出
button.more: 更多
# field # field
field.name: 名称 field.name: 名称

View File

@ -41,7 +41,7 @@
<div class="columns"> <div class="columns">
<div class="column"> <div class="column">
<div class="field"> <div class="field">
<label class="label">Image</label> <label class="label">{{ i18n("field.image") }}</label>
<div class="control is-expanded"> <div class="control is-expanded">
<input name="image" value="{{ .Service.Image }}" class="input" placeholder="" data-v-rule="native" required> <input name="image" value="{{ .Service.Image }}" class="input" placeholder="" data-v-rule="native" required>
</div> </div>

View File

@ -65,7 +65,7 @@
<div class="dropdown is-hoverable is-right"> <div class="dropdown is-hoverable is-right">
<div class="dropdown-trigger"> <div class="dropdown-trigger">
<button class="button is-small" aria-haspopup="true" aria-controls="dropdown-menu-{{ .Name }}"> <button class="button is-small" aria-haspopup="true" aria-controls="dropdown-menu-{{ .Name }}">
<span>More</span> <span>{{ i18n("button.more") }}</span>
<span class="icon is-small"> <span class="icon is-small">
<i class="fas fa-angle-down" aria-hidden="true"></i> <i class="fas fa-angle-down" aria-hidden="true"></i>
{*<i class="fas fa-ellipsis-v" aria-hidden="true"></i>*} {*<i class="fas fa-ellipsis-v" aria-hidden="true"></i>*}

View File

@ -19,13 +19,13 @@
<div class="columns"> <div class="columns">
<div class="column"> <div class="column">
<div class="field"> <div class="field">
<label class="label">Name</label> <label class="label">{{ i18n("field.name") }}</label>
<div class="control"> <div class="control">
<input name="name" value="{{ .Service.Name }}" class="input" type="text" placeholder="" data-v-rule="native" required> <input name="name" value="{{ .Service.Name }}" class="input" type="text" placeholder="" data-v-rule="native" required>
</div> </div>
</div> </div>
<div class="field"> <div class="field">
<label class="label">Image</label> <label class="label">{{ i18n("field.image") }}</label>
<div class="field has-addons is-marginless"> <div class="field has-addons is-marginless">
<div class="control"> <div class="control">
<span class="select"> <span class="select">

View File

@ -73,9 +73,9 @@
</article> </article>
</div> </div>
<footer class="card-footer"> <footer class="card-footer">
<a data-action="export-chart" class="card-footer-item">Export</a> <a data-action="export-chart" class="card-footer-item">{{ i18n("button.export") }}</a>
<a href="{{ .Name }}/edit" class="card-footer-item">Edit</a> <a href="{{ .Name }}/edit" class="card-footer-item">{{ i18n("button.edit") }}</a>
<a data-action="delete-chart" class="card-footer-item">Delete</a> <a data-action="delete-chart" class="card-footer-item">{{ i18n("button.delete") }}</a>
</footer> </footer>
</div> </div>
</div> </div>