From beeec64271e76613a2743facca17ae912978bd38 Mon Sep 17 00:00:00 2001 From: infinite-persistence Date: Wed, 1 Dec 2021 10:15:43 +0800 Subject: [PATCH] i18n ads --- static/app-strings.json | 3 ++- ui/page/home/view.jsx | 9 +++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/static/app-strings.json b/static/app-strings.json index 4488f9bb4..59015053e 100644 --- a/static/app-strings.json +++ b/static/app-strings.json @@ -1084,7 +1084,8 @@ "Trending For Your Tags": "Trending For Your Tags", "Latest From @lbry": "Latest From @lbry", "Latest From @lbrycast": "Latest From @lbrycast", - "Hate these? %log_in_to_domain% or %download_the_app% for an ad free experience.": "Hate these? %log_in_to_domain% or %download_the_app% for an ad free experience.", + "Hate these? %log_in_to_domain% for an ad free experience.": "Hate these? %log_in_to_domain% for an ad free experience.", + "Hate these? Login to Odysee for an ad free experience": "Hate these? Login to Odysee for an ad free experience", "Log in to %domain%": "Log in to %domain%", "odysee collects usage information for itself only (%more_information%).": "odysee collects usage information for itself only (%more_information%).", "odysee collects usage information for itself only (%more_information%). Want control over this and more?": "odysee collects usage information for itself only (%more_information%). Want control over this and more?", diff --git a/ui/page/home/view.jsx b/ui/page/home/view.jsx index 8e1979ab9..f7ab6bd9c 100644 --- a/ui/page/home/view.jsx +++ b/ui/page/home/view.jsx @@ -172,8 +172,9 @@ function HomePage(props: Props) { clonedCard.querySelector('.claim__menu-button').remove(); // $FlowFixMe - clonedCard.querySelector('.truncated-text').innerHTML = - 'Hate these? Login to Odysee for an ad free experience'; + clonedCard.querySelector('.truncated-text').innerHTML = __( + 'Hate these? Login to Odysee for an ad free experience' + ); // $FlowFixMe clonedCard.querySelector('.claim-tile__info').remove(); @@ -206,12 +207,12 @@ function HomePage(props: Props) { // $FlowFixMe const imageWidth = window.getComputedStyle(lastCard.querySelector('.media__thumb')).width; - var styles = `#av-container, #AVcontent, #aniBox { + const styles = `#av-container, #AVcontent, #aniBox { height: ${imageHeight} !important; width: ${imageWidth} !important; }`; - var styleSheet = document.createElement('style'); + const styleSheet = document.createElement('style'); styleSheet.type = 'text/css'; styleSheet.innerText = styles; // $FlowFixMe