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

Prev and Next Button include "Korean" symbols when mouse-over -https://react-component.github.io/pagination/?path=/story/rc-pagination--default #274

Open
ghost opened this issue Jun 1, 2020 · 1 comment

Comments

@ghost
Copy link

ghost commented Jun 1, 2020

Issue
https://react-component.github.io/pagination/?path=/story/rc-pagination--default

Button for Prev and Next shows korean text when mouse-over, how to make it english or change text?

Solution
https://github.com/react-component/pagination/tree/master/src/locale - List of locales.
Example english.

const localeEn = {
  // Options.jsx
  items_per_page: '/ page',
  jump_to: 'Go to',
  jump_to_confirm: 'confirm',
  page: '',

  // Pagination.jsx
  prev_page: 'Previous Page',
  next_page: 'Next Page',
  prev_5: 'Previous 5 Pages',
  next_5: 'Next 5 Pages',
  prev_3: 'Previous 3 Pages',
  next_3: 'Next 3 Pages',
};

<Pagination locale={LocaleEng} />
@joaoromeira
Copy link

Hi! You can import from own module!

Look this

import RcPagination from 'rc-pagination';
import locale from 'rc-pagination/es/locale/en_US';

And use in component

<RcPagination locale={locale} />

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