First translation strings
This commit is contained in:
parent
ac33a596c7
commit
1f382fc8b4
3 changed files with 73 additions and 39 deletions
|
@ -1,12 +1,31 @@
|
||||||
{
|
{
|
||||||
"my": {
|
|
||||||
"translation": {
|
|
||||||
"key": "Test"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"section": {
|
"section": {
|
||||||
"settings": {
|
"settings": {
|
||||||
"title": "Settings"
|
"title": "Settings",
|
||||||
|
"textColor": "Text color",
|
||||||
|
"backgroundColor": "Background color",
|
||||||
|
"ledPowerOnTest": "LED power-on test",
|
||||||
|
"ledFlashOnBlock": "LED flash on new block",
|
||||||
|
"timePerScreen": "Time per screen",
|
||||||
|
"ledBrightness": "LED brightness",
|
||||||
|
"timezoneOffset": "Timezone offset",
|
||||||
|
"timeBetweenPriceUpdates": "Time between price updates",
|
||||||
|
"fullRefreshEvery": "Full refresh every",
|
||||||
|
"mempoolnstance": "Mempool Instance",
|
||||||
|
"hostnamePrefix": "Hostname prefix",
|
||||||
|
"StealFocusOnNewBlock": "Steal focus on new block",
|
||||||
|
"useBigCharsMcap": "Use big characters for market cap",
|
||||||
|
"otaUpdates": "OTA updates (restart required)",
|
||||||
|
"enableMdns": "mDNS (restart required)",
|
||||||
|
"fetchEuroPrice": "Fetch € price (restart required)"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"colors": {
|
||||||
|
"black": "Black",
|
||||||
|
"white": "White"
|
||||||
|
},
|
||||||
|
"time": {
|
||||||
|
"minutes": "minutes",
|
||||||
|
"seconds": "seconds"
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -1,7 +1,22 @@
|
||||||
{
|
{
|
||||||
"section": {
|
"section": {
|
||||||
"settings": {
|
"settings": {
|
||||||
"title": "Instellingen"
|
"title": "Instellingen",
|
||||||
|
"textColor": "Tekstkleur",
|
||||||
|
"backgroundColor": "Achtergrondkleur",
|
||||||
|
"timeBetweenPriceUpdates": "Tijd tussen prijs updates",
|
||||||
|
"timezoneOffset": "Tijdzone afwijking",
|
||||||
|
"ledBrightness": "LED helderheid",
|
||||||
|
"timePerScreen": "Tijd per scherm",
|
||||||
|
"fullRefreshEvery": "Volledig verversen"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"colors": {
|
||||||
|
"black": "Zwart",
|
||||||
|
"white": "Wit"
|
||||||
|
},
|
||||||
|
"time": {
|
||||||
|
"minutes": "minuten",
|
||||||
|
"seconds": "seconden"
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -51,7 +51,7 @@
|
||||||
<CardBody>
|
<CardBody>
|
||||||
<Form on:submit={onSave}>
|
<Form on:submit={onSave}>
|
||||||
<Row>
|
<Row>
|
||||||
<Label md={6} for="fgColor" size="sm">Text color</Label>
|
<Label md={6} for="fgColor" size="sm">{$_('section.settings.textColor', { default: 'Text color' })}</Label>
|
||||||
<Col md="6">
|
<Col md="6">
|
||||||
<Input
|
<Input
|
||||||
type="select"
|
type="select"
|
||||||
|
@ -61,13 +61,13 @@
|
||||||
bsSize="sm"
|
bsSize="sm"
|
||||||
class="form-select-sm"
|
class="form-select-sm"
|
||||||
>
|
>
|
||||||
<option value="0">Black</option>
|
<option value="0">{ $_('colors.black') }</option>
|
||||||
<option value="65535">White</option>
|
<option value="65535">{ $_('colors.white') }</option>
|
||||||
</Input>
|
</Input>
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
<Row>
|
<Row>
|
||||||
<Label md={6} for="bgColor" size="sm">Background color</Label>
|
<Label md={6} for="bgColor" size="sm">{ $_('section.settings.backgroundColor') }</Label>
|
||||||
<Col md="6">
|
<Col md="6">
|
||||||
<Input
|
<Input
|
||||||
type="select"
|
type="select"
|
||||||
|
@ -77,41 +77,41 @@
|
||||||
bsSize="sm"
|
bsSize="sm"
|
||||||
class="form-select-sm"
|
class="form-select-sm"
|
||||||
>
|
>
|
||||||
<option value="0">Black</option>
|
<option value="0">{ $_('colors.black') }</option>
|
||||||
<option value="65535">White</option>
|
<option value="65535">{ $_('colors.white') }</option>
|
||||||
</Input>
|
</Input>
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
<Row>
|
<Row>
|
||||||
<Label md={6} for="timePerScreen" size="sm">Time per screen</Label>
|
<Label md={6} for="timePerScreen" size="sm">{ $_('section.settings.timePerScreen') }</Label>
|
||||||
<Col md="6">
|
<Col md="6">
|
||||||
<InputGroup size="sm">
|
<InputGroup size="sm">
|
||||||
<Input type="number" min={1} step="1" bind:value={$settings.timePerScreen} />
|
<Input type="number" min={1} step="1" bind:value={$settings.timePerScreen} />
|
||||||
<InputGroupText>minutes</InputGroupText>
|
<InputGroupText>{ $_('time.minutes') }</InputGroupText>
|
||||||
</InputGroup>
|
</InputGroup>
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
<Row>
|
<Row>
|
||||||
<Label md={6} for="fullRefreshMin" size="sm">Full refresh every</Label>
|
<Label md={6} for="fullRefreshMin" size="sm">{ $_('section.settings.fullRefreshEvery') }</Label>
|
||||||
<Col md="6">
|
<Col md="6">
|
||||||
<InputGroup size="sm">
|
<InputGroup size="sm">
|
||||||
<Input type="number" min={1} step="1" bind:value={$settings.fullRefreshMin} />
|
<Input type="number" min={1} step="1" bind:value={$settings.fullRefreshMin} />
|
||||||
<InputGroupText>minutes</InputGroupText>
|
<InputGroupText>{ $_('time.minutes') }</InputGroupText>
|
||||||
</InputGroup>
|
</InputGroup>
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
<Row>
|
<Row>
|
||||||
<Label md={6} for="minSecPriceUpd" size="sm">Time between price updates</Label>
|
<Label md={6} for="minSecPriceUpd" size="sm">{ $_('section.settings.timeBetweenPriceUpdates') }</Label>
|
||||||
<Col md="6">
|
<Col md="6">
|
||||||
<InputGroup size="sm">
|
<InputGroup size="sm">
|
||||||
<Input type="number" min={1} step="1" bind:value={$settings.minSecPriceUpd} />
|
<Input type="number" min={1} step="1" bind:value={$settings.minSecPriceUpd} />
|
||||||
<InputGroupText>seconds</InputGroupText>
|
<InputGroupText>{ $_('time.seconds') }</InputGroupText>
|
||||||
</InputGroup>
|
</InputGroup>
|
||||||
<FormText>Short amounts might shorten lifespan.</FormText>
|
<FormText>Short amounts might shorten lifespan.</FormText>
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
<Row>
|
<Row>
|
||||||
<Label md={6} for="tzOffset" size="sm">Timezone offset</Label>
|
<Label md={6} for="tzOffset" size="sm">{ $_('section.settings.timezoneOffset') }</Label>
|
||||||
<Col md="6">
|
<Col md="6">
|
||||||
<InputGroup size="sm">
|
<InputGroup size="sm">
|
||||||
<Input
|
<Input
|
||||||
|
@ -122,13 +122,13 @@
|
||||||
id="tzOffset"
|
id="tzOffset"
|
||||||
bind:value={$settings.tzOffset}
|
bind:value={$settings.tzOffset}
|
||||||
/>
|
/>
|
||||||
<InputGroupText>minutes</InputGroupText>
|
<InputGroupText>{ $_('time.minutes') }</InputGroupText>
|
||||||
</InputGroup>
|
</InputGroup>
|
||||||
<FormText>A restart is required to apply TZ offset.</FormText>
|
<FormText>A restart is required to apply TZ offset.</FormText>
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
<Row>
|
<Row>
|
||||||
<Label md={6} for="ledBrightness" size="sm">LED brightness</Label>
|
<Label md={6} for="ledBrightness" size="sm">{ $_('section.settings.ledBrightness') }</Label>
|
||||||
<Col md="6">
|
<Col md="6">
|
||||||
<Input
|
<Input
|
||||||
type="range"
|
type="range"
|
||||||
|
@ -142,7 +142,7 @@
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
<Row>
|
<Row>
|
||||||
<Label md={6} for="mempoolInstance" size="sm">Mempool Instance</Label>
|
<Label md={6} for="mempoolInstance" size="sm">{ $_('section.settings.mempoolnstance') }</Label>
|
||||||
<Col md="6">
|
<Col md="6">
|
||||||
<Input
|
<Input
|
||||||
type="text"
|
type="text"
|
||||||
|
@ -155,7 +155,7 @@
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
<Row>
|
<Row>
|
||||||
<Label md={6} for="hostnamePrefix" size="sm">Hostname prefix</Label>
|
<Label md={6} for="hostnamePrefix" size="sm">{ $_('section.settings.hostnamePrefix') }</Label>
|
||||||
<Col md="6">
|
<Col md="6">
|
||||||
<Input
|
<Input
|
||||||
type="text"
|
type="text"
|
||||||
|
@ -169,25 +169,25 @@
|
||||||
</Row>
|
</Row>
|
||||||
<Row>
|
<Row>
|
||||||
<Col md="6">
|
<Col md="6">
|
||||||
<Input id="ledTestOnPower" bind:checked={$settings.ledTestOnPower} type="switch" bsSize="sm" label="LED power-on test" />
|
<Input id="ledTestOnPower" bind:checked={$settings.ledTestOnPower} type="switch" bsSize="sm" label="{ $_('section.settings.ledPowerOnTest') }" />
|
||||||
</Col>
|
</Col>
|
||||||
<Col md="6">
|
<Col md="6">
|
||||||
<Input id="ledFlashOnUpd" bind:checked={$settings.ledFlashOnUpd} type="switch" bsSize="sm" label="LED flash on new block" />
|
<Input id="ledFlashOnUpd" bind:checked={$settings.ledFlashOnUpd} type="switch" bsSize="sm" label="{ $_('section.settings.ledFlashOnBlock') }" />
|
||||||
</Col>
|
</Col>
|
||||||
<Col md="6">
|
<Col md="6">
|
||||||
<Input id="stealFocus" bind:checked={$settings.stealFocus} type="switch" bsSize="sm" label="Steal focus on new block" />
|
<Input id="stealFocus" bind:checked={$settings.stealFocus} type="switch" bsSize="sm" label="{ $_('section.settings.StealFocusOnNewBlock') }" />
|
||||||
</Col>
|
</Col>
|
||||||
<Col md="6">
|
<Col md="6">
|
||||||
<Input id="mcapBigChar" bind:checked={$settings.mcapBigChar} type="switch" bsSize="sm" label="Use big characters for market cap" />
|
<Input id="mcapBigChar" bind:checked={$settings.mcapBigChar} type="switch" bsSize="sm" label="{ $_('section.settings.useBigCharsMcap') }" />
|
||||||
</Col>
|
</Col>
|
||||||
<Col md="6">
|
<Col md="6">
|
||||||
<Input id="otaEnabled" bind:checked={$settings.otaEnabled} type="switch" bsSize="sm" label="OTA updates (restart required)" />
|
<Input id="otaEnabled" bind:checked={$settings.otaEnabled} type="switch" bsSize="sm" label="{ $_('section.settings.otaUpdates') }" />
|
||||||
</Col>
|
</Col>
|
||||||
<Col md="6">
|
<Col md="6">
|
||||||
<Input id="mdnsEnabled" bind:checked={$settings.mdnsEnabled} type="switch" bsSize="sm" label="mDNS (restart required)" />
|
<Input id="mdnsEnabled" bind:checked={$settings.mdnsEnabled} type="switch" bsSize="sm" label="{ $_('section.settings.enableMdns') }" />
|
||||||
</Col>
|
</Col>
|
||||||
<Col md="6">
|
<Col md="6">
|
||||||
<Input id="fetchEurPrice" bind:checked={$settings.fetchEurPrice} type="switch" bsSize="sm" label="Fetch € price (restart required)" />
|
<Input id="fetchEurPrice" bind:checked={$settings.fetchEurPrice} type="switch" bsSize="sm" label="{ $_('section.settings.fetchEuroPrice') }" />
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue