ayann / active_admin_flat_skin

Active Admin Flat theme design.
http://ayann.github.io/active_admin_flat_skin
MIT License
91 stars 62 forks source link

I want to change the international name.I not Afficher les filtres. #24

Open liurui12w opened 4 years ago

liurui12w commented 4 years ago

No description provided.

image

liurui12w commented 4 years ago

I'm add a new vendor/assets/javascripts/active_admin_flat_skin.js.erb AND config/locales/zh-CN.yml , image

That's ok.

Who has a better way?

jgabardini commented 9 months ago

Hi, I don't know how to fix the problem. If I understand the process correctly, the template (erb) is used during assets precompilation. So the locale is set, user's preferences doesn't affect it.

This is the workaround that I use (note the id is diplay-filter):

# app/assets/javascripts/active_admin.js
//= require active_admin/base
//= require activeadmin_addons/all
//= require active_admin_flat_skin
//= require active_admin_kleer
# app/assets/javascripts/active_admin_fix.js
jQuery(document).ready(function($) {
  $('#diplay-filter').text('Filter');
})