Translate the footer.
Most of the items in the footer don't need to be translated, but it was troublesome trying to make `sections[]` re-resolve the label on a language change, if we want to selectively translate certain labels only. So, just translate everything for now. Translators can simply clone the English string if it doesn't need a translation.
This commit is contained in:
parent
44bcc943a0
commit
e8e6000b13
2 changed files with 9 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
||||||
{
|
{
|
||||||
"404": "404",
|
"404": "404",
|
||||||
|
"2257": "2257",
|
||||||
"Thumbnail Image": "Thumbnail Image",
|
"Thumbnail Image": "Thumbnail Image",
|
||||||
"OK": "OK",
|
"OK": "OK",
|
||||||
"Cancel": "Cancel",
|
"Cancel": "Cancel",
|
||||||
|
@ -1435,5 +1436,12 @@
|
||||||
"Level up with LBRY - %version%": "Level up with LBRY - %version%",
|
"Level up with LBRY - %version%": "Level up with LBRY - %version%",
|
||||||
"Invites": "Invites",
|
"Invites": "Invites",
|
||||||
"This comment was slimed to death.": "This comment was slimed to death.",
|
"This comment was slimed to death.": "This comment was slimed to death.",
|
||||||
|
"Reddit": "Reddit",
|
||||||
|
"Chat (Discord)": "Chat (Discord)",
|
||||||
|
"Telegram": "Telegram",
|
||||||
|
"YouTube Partner Program": "YouTube Partner Program",
|
||||||
|
"lbry.com": "lbry.com",
|
||||||
|
"lbry.tech": "lbry.tech",
|
||||||
|
"GitHub": "GitHub",
|
||||||
"--end--": "--end--"
|
"--end--": "--end--"
|
||||||
}
|
}
|
||||||
|
|
|
@ -89,7 +89,7 @@ export default function Footer() {
|
||||||
{links.map(({ label, link, navigate }) => {
|
{links.map(({ label, link, navigate }) => {
|
||||||
return (
|
return (
|
||||||
<li key={label}>
|
<li key={label}>
|
||||||
<Button className="footer__link" href={link} navigate={navigate} label={label} />
|
<Button className="footer__link" href={link} navigate={navigate} label={__(label)} />
|
||||||
</li>
|
</li>
|
||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
|
|
Loading…
Reference in a new issue