Browse Source

i18n: Translated category creation form on index page

master
parent
commit
143a3d1544
  1. 4
      pages/index.html
  2. 10
      translations/eng/index.json
  3. 10
      translations/ru/index.json

4
pages/index.html

@ -30,8 +30,8 @@
<div class="input-group mb-3 py-md-5"> <div class="input-group mb-3 py-md-5">
<input type="text" name="newCategory"aria-label="Category Name" aria-describedby="button-new-category" class="form-control" id="new-category-input" placeholder="Category Name"> <input type="text" name="newCategory" aria-label="Category Name" aria-describedby="button-new-category" class="form-control" id="new-category-input" placeholder='{{index .Translation "index placeholder category name"}}'>
<button id="button-new-category" onclick="createNewCategory();" class="btn btn-primary">Create</button > <button id="button-new-category" onclick="createNewCategory();" class="btn btn-primary">{{index .Translation "index create button"}}</button >
</div> </div>
</div> </div>

10
translations/eng/index.json

@ -15,6 +15,16 @@
"id": "index jump here", "id": "index jump here",
"message": "Jump here", "message": "Jump here",
"translation": "Jump here" "translation": "Jump here"
},
{
"id": "index placeholder category name",
"message": "Category Name",
"translation": "Category Name"
},
{
"id": "index create button",
"message": "Create",
"translation": "Create"
} }
] ]
} }

10
translations/ru/index.json

@ -15,6 +15,16 @@
"id": "index jump here", "id": "index jump here",
"message": "Jump here", "message": "Jump here",
"translation": "Перейти" "translation": "Перейти"
},
{
"id": "index placeholder category name",
"message": "Category Name",
"translation": "Название Категории"
},
{
"id": "index create button",
"message": "Create",
"translation": "Создать"
} }
] ]
} }
Loading…
Cancel
Save