-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: feed end indicator (2) #385
Conversation
@sevonj is attempting to deploy a commit to the Xylight's projects Team on Vercel. A member of the Team first needs to authorize it. |
{#if feedData.community_name} | ||
You have reached the end of {feedData.community_name}. | ||
{:else} | ||
You have reached the end of the feed. | ||
{/if} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These strings are now separate because I already know that trying to work one to fit both would be a pain in some languages.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could make a string like this:
"endFeed": "You have reached the end of {feed}",
"feed": "The feed"
and then in the code:
$t('endFeed', { feed: feedData.community_name ?? $t('feed').toLowercase() }
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have to think through the logic so I can make it grammatically correct in the Finnish translation. The language uses cases everywhere, so I have to restructure the sentence to work myself out of the need to change the case of community_name.
Maybe I can put the entire sentence inside a check like {{feed;the feed:{{feed}}_sentence; default:community_sentence {{feed}};}}
f80a882
to
f561670
Compare
@@ -183,7 +183,8 @@ | |||
"routes": { | |||
"frontpage": { | |||
"title": "Frontpage", | |||
"footer": "{{users:number}} active {{users; 1:user; default:users;}}" | |||
"footer": "{{users:number}} active {{users; 1:user; default:users;}}", | |||
"endFeed": "You have reached the end of {{community_name; undefined:the feed.; default:{{community_name}}.}}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
I just added a scroll to top button and made it so it wouldn't overflow with the scroll button. |
Thanks for your contribution! |
Second attempt at #369
![image](https://private-user-images.githubusercontent.com/100710152/352467815-b4974d67-b637-4015-a049-4d3eb1f0fd63.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNzY3MTMsIm5iZiI6MTczOTE3NjQxMywicGF0aCI6Ii8xMDA3MTAxNTIvMzUyNDY3ODE1LWI0OTc0ZDY3LWI2MzctNDAxNS1hMDQ5LTRkM2ViMWYwZmQ2My5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMFQwODMzMzNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1jMzY1MWQxZjBlODJlNzM4MTBkYjY2ZGEwMGJkNGZhN2I0YjRjMzc5YjE3ODg2Yzg3M2NlMGUwOGVmMzgxMGU3JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.OCQ0bbHngUWFuv8rz3vSUd2rOYSWH7AfDZ4LTw4N8hA)
Still needs to use translations, maybe rephrase it too.
I omitted the scroll to top button as it did not work.