-
Notifications
You must be signed in to change notification settings - Fork 4
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
Refactor/locales #432
Refactor/locales #432
Conversation
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.
@queuing4oranges Ok, this looks good - dont forget to update also locales in demo
app and add the changelog. Btw. the videos can be displayed because of corrupted content :)
replacing locales in asab-webui when locales load normally: demo-locales-correct.mp4when locales file is corrupted: demo-locales-corrupted.mp4hope the video works! |
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.
@queuing4oranges Small change request
src/components/Pagination.js
Outdated
@@ -162,7 +162,8 @@ export default function ({ currentPage, setPage, lastPage, style }) { | |||
</Dropdown> | |||
|
|||
<div className="mr-2"> | |||
{pages && (pages.length > 1) ? t('Pages', {pages: (lastPage == 0) ? 1 : lastPage}) : t('Page', {pages: (lastPage == 0) ? 1 : lastPage})} | |||
{pages && (pages.length > 1) ? (`${t("of")} ${pages.length} ${t("Pages")}`) : | |||
(`${t("of")} ${pages.length} ${t("Page")}`)} |
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.
@queuing4oranges Here I believe we want to have sometjing like:
{pages && (pages.length > 1) ? (`${t("of")} ${(lastPage == 0) ? 1 : lastPage} ${t("Pages")}`) : (`${t("of")} ${(lastPage == 0) ? 1 : lastPage} ${t("Page")}`)}
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.
@queuing4oranges alright, this is good
-- when locales is loaded normally:
Kazam_screencast_00000.mp4
-- when the locales file is corrupted:
Kazam_screencast_00001.mp4