localize
This commit is contained in:
Родитель
9b4112f730
Коммит
f8b17c5b4f
|
@ -262,6 +262,10 @@ clipboard:
|
|||
copy_to_clipboard: Copy to Clipboard
|
||||
copied: Copied
|
||||
|
||||
fiddle_launch_button:
|
||||
launch: Launch
|
||||
launch_in_fiddle: Launch in Fiddle
|
||||
|
||||
or: or
|
||||
|
||||
pages:
|
||||
|
|
|
@ -25,9 +25,9 @@ module.exports = function copyCodeToClipBoard () {
|
|||
if (code.dataset.fiddleUrl) {
|
||||
const launchButton = document.createElement('button')
|
||||
launchButton.classList.add('btn-launch', 'tooltipped', 'tooltipped-n', 'float-left')
|
||||
launchButton.setAttribute('aria-label', 'Launch in Fiddle')
|
||||
launchButton.setAttribute('aria-label', window.localized.fiddle_launch_button.launch_in_fiddle)
|
||||
launchButton.setAttribute('data-fiddle-url', code.dataset.fiddleUrl)
|
||||
launchButton.innerHTML = 'Launch'
|
||||
launchButton.innerHTML = window.localized.fiddle_launch_button.launch
|
||||
buttonGroup.appendChild(launchButton)
|
||||
}
|
||||
|
||||
|
|
|
@ -34,6 +34,8 @@
|
|||
<meta name="localized.clipboard.copy" content="{{localized.clipboard.copy}}" />
|
||||
<meta name="localized.clipboard.copy_to_clipboard" content="{{localized.clipboard.copy_to_clipboard}}" />
|
||||
<meta name="localized.clipboard.copied" content="{{localized.clipboard.copied}}" />
|
||||
<meta name="localized.fiddle_launch_button.launch" content="{{localized.fiddle_launch_button.launch}}" />
|
||||
<meta name="localized.fiddle_launch_button.launch_in_fiddle" content="{{localized.fiddle_launch_button.launch_in_fiddle}}" />
|
||||
|
||||
<meta name="twitter:site" content="@ElectronJS" />
|
||||
<link rel='shortcut icon' href='/images/favicon.ico'/>
|
||||
|
|
Загрузка…
Ссылка в новой задаче