mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
Modify ping, base64 and msgpack node to support multi-language (#364)
Thanks again Yokoi-san * Internationalize ping node * Internationalize base64 node * Internationalize msgpack node
This commit is contained in:
parent
482cfea1de
commit
377cfbba92
@ -1,16 +1,16 @@
|
||||
|
||||
<script type="text/x-red" data-template-name="ping">
|
||||
<div class="form-row">
|
||||
<label for="node-input-host"><i class="fa fa-dot-circle-o"></i> Target</label>
|
||||
<label for="node-input-host"><i class="fa fa-dot-circle-o"></i> <span data-i18n="ping.label.target"></span></label>
|
||||
<input type="text" id="node-input-host" placeholder="www.google.com">
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<label for="node-input-timer"><i class="fa fa-repeat"></i> Ping (S)</label>
|
||||
<label for="node-input-timer"><i class="fa fa-repeat"></i> <span data-i18n="ping.label.ping"></label>
|
||||
<input type="text" id="node-input-timer" placeholder="20">
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
|
||||
<input type="text" id="node-input-name" placeholder="Name">
|
||||
<label for="node-input-name"><i class="fa fa-tag"></i> <span data-i18n="node-red:common.label.name"></span></label>
|
||||
<input type="text" id="node-input-name" data-i18n="[placeholder]node-red:common.label.name">
|
||||
</div>
|
||||
</script>
|
||||
|
||||
|
8
io/ping/locales/en-US/88-ping.json
Normal file
8
io/ping/locales/en-US/88-ping.json
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"ping": {
|
||||
"label": {
|
||||
"target": "Target",
|
||||
"ping": "Ping (S)"
|
||||
}
|
||||
}
|
||||
}
|
8
io/ping/locales/ja/88-ping.json
Normal file
8
io/ping/locales/ja/88-ping.json
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"ping": {
|
||||
"label": {
|
||||
"target": "対象",
|
||||
"ping": "Ping (秒)"
|
||||
}
|
||||
}
|
||||
}
|
@ -1,8 +1,8 @@
|
||||
|
||||
<script type="text/x-red" data-template-name="base64">
|
||||
<div class="form-row">
|
||||
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
|
||||
<input type="text" id="node-input-name" placeholder="Name">
|
||||
<label for="node-input-name"><i class="fa fa-tag"></i> <span data-i18n="node-red:common.label.name"></span></label>
|
||||
<input type="text" id="node-input-name" data-i18n="[placeholder]node-red:common.label.name">
|
||||
</div>
|
||||
</script>
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
|
||||
<script type="text/x-red" data-template-name="msgpack">
|
||||
<div class="form-row">
|
||||
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
|
||||
<input type="text" id="node-input-name" placeholder="Name">
|
||||
<label for="node-input-name"><i class="fa fa-tag"></i> <span data-i18n="node-red:common.label.name"></span></label>
|
||||
<input type="text" id="node-input-name" data-i18n="[placeholder]node-red:common.label.name">
|
||||
</div>
|
||||
</script>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user