Skip to content
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

Add option to translate footer ({activeView} of {totalViews}) #356

Open
Bastian opened this issue Mar 17, 2020 · 0 comments
Open

Add option to translate footer ({activeView} of {totalViews}) #356

Bastian opened this issue Mar 17, 2020 · 0 comments

Comments

@Bastian
Copy link

Bastian commented Mar 17, 2020

Steps to reproduce the behavior:
/

Expected behavior:
It would be nice to be able to change the footer text (currently hardcoded: {activeView} of {totalViews}) without replacing the whole Footer component.

<Span
css={getStyles('footerCount', props)}
className={className('footer__count', state)}
>
{activeView} of {totalViews}
</Span>

Actual behavior:
The only option to change the text (as far as I can see) is to override the Footer component. It would be more convenient to have it included in the already existing formatters object:

export default {
getAltText,
getNextLabel,
getPrevLabel,
getNextTitle,
getPrevTitle,
getCloseLabel,
getFullscreenLabel,
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant