Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Kaminari I18n translation in zh-CN language
# Usage:
# 1. Put this file in config/locales/kaminari/zh-CN.yml
# 2. Set load_path in config/application.rb as below:
# config.i18n.load_path += Dir[Rails.root.join('config', 'locales', '**', '*.{rb,yml}').to_s]
zh-CN:
views:
pagination:
first: "« 首页"
last: "末页 »"
previous: "‹ 上一页"
next: "下一页 ›"
truncate: "…"
helpers:
page_entries_info:
one_page:
display_entries:
zero: "暂时没有相关记录"
one: "正在显示第 <b>1</b> 个"
other: "正在显示 <b>全部 %{count}</b> 个"
more_pages:
display_entries: "当前显示为第 <b>%{first}&nbsp;-&nbsp;%{last}</b> 个,共 <b>%{total}</b> 个"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment