weezing
weezing

Reputation: 396

How to customize devise for another language?

I have rails app which is going to be deployed in non-english country (Poland). I'm not able to find which files should I have to edit to translate ALL devise default strings into polish (form labels, default e-mails, buttons, etc.).

Upvotes: 0

Views: 1587

Answers (1)

Dushyant
Dushyant

Reputation: 4960

As per the documentation

Set default locale (config/application.rb)

config.i18n.default_locale = :pl

If you still wanna write your own, you can add something like in your I18n files

pl:
  devise:
    sessions:
      signed_in: 'Podpisana w powodzeniem.'

More info on GitHub https://github.com/plataformatec/devise#i18n

I hope it helps!

Upvotes: 1

Related Questions