Toot!
This commit is contained in:
parent
ce08be9d1c
commit
d7c75bc934
|
@ -84,7 +84,7 @@
|
|||
</label>
|
||||
</section>
|
||||
<section class="submit">
|
||||
<input type="submit" value="TOOT!" />
|
||||
<input type="submit" value="TOOT!" data-translate-value="toot" />
|
||||
</section>
|
||||
</form>
|
||||
</main>
|
||||
|
|
|
@ -6,6 +6,7 @@ const translations = {
|
|||
post_text_placeholder: "Qu’avez-vous en tête ?",
|
||||
choose_instance: "Choisissez votre instance Mastodon",
|
||||
remember_instance: "Se souvenir de mon instance sur ce navigateur",
|
||||
toot: "TOOTER !",
|
||||
what_is_mastodon: "Qu’est-ce que Mastodon ?",
|
||||
share2fedi_on_github: "share2fedi sur GitHub",
|
||||
},
|
||||
|
@ -15,6 +16,7 @@ const translations = {
|
|||
post_text_placeholder: "¿Qué está pasando?",
|
||||
choose_instance: "Elige tu instancia de Mastodon",
|
||||
remember_instance: "Recordar mi instancia en este navegador",
|
||||
toot: "¡TOOT!",
|
||||
what_is_mastodon: "¿Qué es Mastodon?",
|
||||
share2fedi_on_github: "share2fedi en GitHub",
|
||||
},
|
||||
|
@ -24,15 +26,17 @@ const translations = {
|
|||
post_text_placeholder: "Was denkst du gerade?",
|
||||
choose_instance: "Wähle deine Mastodon-Instanz",
|
||||
remember_instance: "Diese Instanz merken",
|
||||
toot: "TOOTER!",
|
||||
what_is_mastodon: "Was ist Mastodon?",
|
||||
share2fedi_on_github: "share2fedi auf GitHub",
|
||||
},
|
||||
ru: {
|
||||
for: "для",
|
||||
post_text: "Текст тута",
|
||||
post_text_placeholder: "Что у вас на уме?",
|
||||
post_text: "Toot Текст",
|
||||
post_text_placeholder: "О чем вы думаете?",
|
||||
choose_instance: "Выберите вашу инстанцию Mastodon",
|
||||
remember_instance: "Запомнить эту инстанцию в этом браузере",
|
||||
toot: "TOOTER!",
|
||||
what_is_mastodon: "Что такое Mastodon?",
|
||||
share2fedi_on_github: "share2fedi на GitHub",
|
||||
},
|
||||
|
@ -61,4 +65,9 @@ if (replacements) {
|
|||
const replacement = replacements[element.dataset.translatePlaceholder];
|
||||
if (replacement) element.placeholder = replacement;
|
||||
}
|
||||
|
||||
for (const element of document.querySelectorAll("[data-translate-value]")) {
|
||||
const replacement = replacements[element.dataset.translateValue];
|
||||
if (replacement) element.value = replacement;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue