mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-23 07:10:41 +00:00
Allow fields settings to be translated
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { App } from '../App'
|
||||
import { Header } from '../components/Header'
|
||||
import { Octicon } from '../components/Octicon'
|
||||
import { locale } from '../Locales'
|
||||
import { View } from './View'
|
||||
|
||||
export const FieldSettings = (view: View): string => {
|
||||
@@ -26,10 +27,12 @@ export const FieldSettings = (view: View): string => {
|
||||
})
|
||||
return `<li>
|
||||
<div class="field-prop">
|
||||
<label>Path</label><input size="30" data-id="${pathInput}">
|
||||
<label>${locale('settings.fields.path')}</label>
|
||||
<input size="30" data-id="${pathInput}">
|
||||
</div>
|
||||
<div class="field-prop">
|
||||
<label>Name</label><input data-id="${nameInput}">
|
||||
<label>${locale('settings.fields.name')}</label>
|
||||
<input data-id="${nameInput}">
|
||||
</div>
|
||||
<div class="field-prop">
|
||||
<span ${f?.hidden ? 'class="hidden"' : ''} data-id="${view.onClick(() => {
|
||||
@@ -51,9 +54,7 @@ export const FieldSettings = (view: View): string => {
|
||||
|
||||
return `${Header(view, 'Field Settings')}
|
||||
<div class="settings">
|
||||
<p>
|
||||
Customize advanced field settings
|
||||
</p>
|
||||
<p>${locale('settings.fields.description')}</p>
|
||||
<ul class="field-list" data-id="${fieldListId}"></ul>
|
||||
</div>`
|
||||
}
|
||||
|
||||
@@ -11,6 +11,9 @@
|
||||
"predicate": "Predicate",
|
||||
"redo": "Redo",
|
||||
"reset": "Reset",
|
||||
"settings.fields.description": "Customize advanced field settings",
|
||||
"settings.fields.path": "Context",
|
||||
"settings.fields.name": "Name",
|
||||
"share": "Share",
|
||||
"title.generator": "%0% Generator",
|
||||
"title.home": "Data Pack Generators",
|
||||
|
||||
Reference in New Issue
Block a user