Skip to content
This repository

Customize your own I18n solution.

One easy way is to overwrite app/helpers/devise_helper.rb, which is mentioned as “A simple way to show error messages for the current devise resource. If you need to customize this method, you can either overwrite it in your application helpers or copy the views to your application.” in the comment.

Set default locale (config/application.rb)

config.i18n.default_locale = :sv

Use the devise-i18n gem

An effort to homogenize translations for devise is being made here: https://github.com/tigrish/devise-i18n

Use a custom locale file

Alternatively use one of the following locale files.
Place them under config/locales.

Arabic (devise.ar.yml)

https://gist.github.com/3968291 (for devise v2.2.4) by @TamerShlash
https://gist.github.com/2686633 by @tactius

Brazilian Portuguese (devise.pt-BR.yml)

https://gist.github.com/924555 by @mateusg
https://gist.github.com/766771 by @phstc
https://gist.github.com/628507 by @shadow11
https://gist.github.com/1045501 by @danilofavacho
https://gist.github.com/1326333 for Devise 1.4.7 by @daniambrosio
https://gist.github.com/1007304 for Devise 2.1.2 by @lucascaton
https://gist.github.com/rimenes/6032190 for Devise 3.0.0 by @rimenes
https://gist.github.com/cerdiogenes/6503790 for Devise 3.0.0 by @cerdiogenes
https://gist.github.com/mateusdelbianco/7129195 for Devise 3.1.x by @mateusdelbianco
https://gist.github.com/daniambrosio/8616255 for Devise 3.2.2 by @daniambrosio

Bulgarian (devise.bg.yml)

https://gist.github.com/5487275 for Devise 2.2.3 by @mitio
https://gist.github.com/2021786 by @bbatsov

Catalan (devise.ca.yml)

https://gist.github.com/1427701 by @codegram and @jrom

Chinese Simplified

devise.zh-CN.yml (for Devise v3.2.2)
https://gist.github.com/Kenrick-Zhou/7909822 by @Kenrick-Zhou
devise.zh-CN.yml (for Devise v2.1)
https://gist.github.com/3768778 by @shichuan
devise.zh-CN.yml (for Devise v2.0)
https://gist.github.com/1693549 by @HungYuHei
devise.zh-cn.yml
https://gist.github.com/482530 by @doabit
devise.zh-CN.yml
https://gist.github.com/1008642
devise.zh-CN.yml
https://gist.github.com/1319590 by @acenqiu

Chinese Traditional

devise.zh-TW.yml (for Devise v3.2.4)
https://gist.github.com/9662064 by @danny8376

devise.zh-TW.yml (for Devise v2.0, thanks to @l4u and @gugod)
https://gist.github.com/2410992 by @tomchentw

devise.zh-TW.yml
https://gist.github.com/964066 by @l4u
https://gist.github.com/477126 by @gugod

Croatian (devise.hr.yml)

https://gist.github.com/991538 by @babinho

Czech (devise.cs.yml)

https://gist.github.com/2864510 by @jnv (Devise 2.2.2)
https://gist.github.com/889553 by @bver

Danish (devise.da.yml)

https://gist.github.com/638785 by @jgrau
https://gist.github.com/1710884 by @martinjlowm (Devise 2.0.0)
https://gist.github.com/9546397 by @askehansen (Devise 3.0.0)

Dutch (devise.nl.yml)

https://gist.github.com/JanDintel/5424640 by @JanDintel
https://gist.github.com/448125 by @wilco

English (default)

https://github.com/plataformatec/devise/blob/master/config/locales/en.yml

This fill will be added automatically when using the generator.

Estonian (devise.et.yml)

https://gist.github.com/2397606 by @borgand

Finnish (devise.fi.yml)

https://gist.github.com/786127 by @akonan
https://gist.github.com/1711301 by @jarijokinen (Devise 2.0.0)
https://gist.github.com/jannewaren/8671676 by @jannewaren (Devise 3.0)

French (devise.fr.yml)

https://gist.github.com/10009321 by @GRoguelon (Devise 3.2.4)
https://gist.github.com/2427349 by @simonc (Devise 2.0 and 3.0)
https://gist.github.com/1153706 by @bbenezech
https://gist.github.com/379988 by @tadatoshi
https://gist.github.com/871074 by @jujudellago (update for translated-views devise-1.1.2)

German (devise.de.yml)

https://gist.github.com/thomasklemm/6821669 (Du) by @thomasklemm (Devise 3.1)
https://gist.github.com/zumbrunnen/7231822 (Sie) by @zumbrunnen (Devise 3.1)
https://gist.github.com/corny/6175434 (Du) by @corny (Devise 3.0)
https://gist.github.com/tigg/5706626 (Sie) by @tigg (Devise 2.2)
https://gist.github.com/520859 (Sie) by @chrugail
https://gist.github.com/624775 (Du) by @mrjfk10
https://gist.github.com/960718 (Du auch) by @punkrats
https://gist.github.com/1496869 (Sie) by @fschwahn (devise 2.0)
https://gist.github.com/1820398 (Du) by @ding280 (devise 2.0)

Greek (devise.gr.yml)

https://gist.github.com/4390007 by @johndel

Haitian Creole (devise.ht.yml)

https://gist.github.com/natesholland/7884335 by @natesholland

Hungarian (devise.hu.yml)

https://gist.github.com/716483 by @czettnersandor

Hebrew (devise.he.yml)

https://gist.github.com/503804, by @shmichael (devise 1.0.8)

Icelandic (devise.is.yml)

See devise-i18n

Indonesian (devise.id.yml)

https://gist.github.com/754652, by @yulrizka

Italian (devise.it.yml)

https://gist.github.com/xpepper/8052632, by xpepper (Devise 3.2)
https://gist.github.com/fuzziness/5262777, by @fuzziness (Devise 2.2)
https://gist.github.com/fuzziness/5261396, by @fuzziness (Devise 2.1)
https://gist.github.com/1170644 by @mcanato

Japanese (devise.ja.yml)

See devise-i18n

(>= 2.2) https://gist.github.com/4729292 by @kawamoto
(>= 2.1.2) https://gist.github.com/3104030 by @orzccc
(>= 1.1.2) https://gist.github.com/606476 by @yhara

Korean (devise.ko.yml)

https://gist.github.com/2375422 by @ruseel

Latvian (devise.lv.yml)

https://gist.github.com/1226317 by @mak-it

Lithuanian (devise.lt.yml)

https://gist.github.com/432788 by @pacifists
https://gist.github.com/jpalumickas/5382166 by @jpalumickas (Devise 2.2)

Malaysian (devise.my.yml)

https://gist.github.com/977606 by @iqbalhasnan

Norwegian Bokmål (devise.nb.yml)

https://gist.github.com/902531 by @bonkowski and @kjbekkelund
https://gist.github.com/2492889 by @henningjensen (devise 2.0)
https://gist.github.com/4978170 by @badeball (Devise 2.2.3)

Persian (devise.fa.yml)

https://gist.github.com/939048 by @ryco

Polish (devise.pl.yml)

https://gist.github.com/455635 by @sickill
https://gist.github.com/487808 by @grzesiub
https://gist.github.com/891279 by @marioosh (devise 1.2)
https://gist.github.com/1099061 by @rogal111 (devise 1.4.2)
https://gist.github.com/1235911 by @saepia (devise 1.4.6)
https://gist.github.com/1685976 by @kszksz (devise 2.0.0)
https://gist.github.com/1958933 by @Nowaker (devise 2.0.1 + language fixes)
https://gist.github.com/mitfik/9299359 by @mitfik (devise >= 3.0 )

Portugal Portuguese (devise.pt-PT.yml)

https://gist.github.com/3118595 by @luisramalho
https://gist.github.com/579087 by @alexreisner
https://gist.github.com/1002747 by @pama

Romanian (devise.ro.yml)

https://gist.github.com/3323183 by @polmolea

Russian (devise.ru.yml)

https://gist.github.com/1242140, by @Antiarchitect – it has some problems
[GEM] https://rubygems.org/gems/devise-russian by @korobkov – has no github repo
https://gist.github.com/428668, by @sergio-fry Last active 2011 years ago
https://github.com/kiote/devise-rus (devise 2.0.1 +) – last changes in 2012 years
https://gist.github.com/5168083, by EvilFaeton (devise >= 2.2) Last active 2013 years ago

Serbian (ћирилица) (devise.sr.yml)

https://gist.github.com/2837770 by @batamire (devise >= 2.1)

Serbian (latinica) (devise.sr-Latn.yml)

https://gist.github.com/3841263 by @Maidomax (devise >= 2.1)

Slovak (devise.sk.yml)

https://gist.github.com/1295185 by @marospixel
https://gist.github.com/istana/5867221 by @istana (for Devise 2.2, 3.0)

Slovenian (devise.sl.yml)

https://gist.github.com/4337418 by @samotarnik (Devise 2.1.2)

Spanish (devise.es.yml)

https://gist.github.com/2125911 by @ianmurrays
https://gist.github.com/1196295 (Tu) (for Devise 1.4.4)
https://gist.github.com/1133929 (Tu) (for Devise 1.4.2) by @willywg
https://gist.github.com/1111315 (Tu) by @scambra
https://gist.github.com/448139 (Tu) by @pacoguzman
https://gist.github.com/463944 (Tu) by @eduludi
https://gist.github.com/1257123 (Usted) by @ChristopherThorpe, forked from 1196295
https://gist.github.com/1302200 – Spanish Mexican for Devise 1.4.8 by Gabriel Medina Rha7
https://gist.github.com/1330093 (Mexico – Usted) by @albertopadilla
https://gist.github.com/1330091 (Mexico – Tú) by @albertopadilla
https://gist.github.com/2231938 (Guatemala – Tu – devise 2.0.4) by @sartip
https://gist.github.com/5711132 (Usted) (for devise 2.2.4) by @apat
https://gist.github.com/5864124 (Neutral Spanish [tú] for devise 3.0.0) by @pzin
https://gist.github.com/6847936 (Neutral Spanish [tú] for devise 3.1.1) by @willywg, forked from 5864124
https://gist.github.com/8278002 (Neutral Spanish [tú] for devise 3.2.2) by @Theby, forked from 6847936
https://gist.github.com/8278358 (Neutral Spanish [usted] for devise 3.2.2) by @Theby

Swedish (devise.sv.yml)

https://gist.github.com/440569 by @flojon

Turkish (device.tr.yml)

https://gist.github.com/1564962 by @cihad

Vietnamese (devise.vi.yml)

https://gist.github.com/anhkind/5744189 by @anhkind
https://gist.github.com/1802699 by @stnguyen

Ukrainian (devise.uk.yml)

https://gist.github.com/1502781 by @kolodiazhnyi
https://gist.github.com/emeraldMaster/5270173 (devise >= 2.2)

Something went wrong with that request. Please try again.