Skip to content
İsmail Arılık edited this page Feb 28, 2024 · 289 revisions

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. Help translate on Locale!

Use a custom locale file

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

Albanian (devise.sq.yml)

https://gist.github.com/5aa556456bee098029f7 by @ttomor
https://gist.github.com/5f099464f7e0f7d717436aa6ee7e6282 (for Devise 4.2.0) by @fatosmorina

Arabic (devise.ar.yml)

see devise-i18n
https://gist.github.com/9fb0066418e10f0b10a7995fedc5a582 (for devise v4) by @samidahlawi
https://gist.github.com/134dba5215c0cb16bccc (for devise v3 and v4) by @mabras
https://gist.github.com/3968291 (for devise v2.2.4) by @TamerShlash
https://gist.github.com/2686633 by @tactius

Bangla (devise.bn.yml)

https://gist.github.com/mhbcse/8683b3d5c7a5b7ff092c by @maruf-freelancer

Bosnian (devise.ba.yml)

https://gist.github.com/l0oky/8e7501ef877cc55a0620 by @l0oky

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
https://gist.github.com/KelvinVenancio/96a98a18554d8c2079e5 for Devise 3.4.1 by @kelvinvenancio
https://gist.github.com/victorximenis/24edd5bb21b640a351e8f5367d7ecc2c for Devise 4.1.1 by @victorximenis
https://gist.github.com/hasken-14/df6171f5a183fb61b0d4ad361af1c445 for Devise 4.3.0 by @hasken-14
https://gist.github.com/de-farias/62c24d3bf84045b2e858abbdd20fa3e5 for Devise 4.8.1 by @de-farias

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
https://gist.github.com/bee12ca7cb6900c86ea1 by @jordigg (for Devise 3.2.4)

Chinese Simplified

Devise 4.2.6
https://gist.github.com/Artoria2e5/6d2a06ca9e92a417afc627b5000f4690#file-devise-zh-cn-yml by @Artoria2e5
Devise 4.2.0
https://gist.github.com/HealthGrid/2d702b38aa6ffe0233f27d3d5be9250f by @HealthGrid
Devise 3.5.2
https://gist.github.com/Kenrick-Zhou/7909822 by @Kenrick-Zhou
Devise 2.1
https://gist.github.com/3768778 by @shichuan
Devise 2.0
https://gist.github.com/1693549 by @HungYuHei
Undated translations

https://gist.github.com/482530 by @doabit
https://gist.github.com/1008642
https://gist.github.com/1319590 by @acenqiu

Chinese Traditional

Devise 4.2.6
https://gist.github.com/Artoria2e5/6d2a06ca9e92a417afc627b5000f4690#file-devise-zh-tw-yml by @Artoria2e5
Devise 4.1.1
https://gist.github.com/MitsunChieh/8b4249859274acd15df5f4d757e55bc2 by @MitsunChieh
Devise 3.5.2
https://gist.github.com/twbcs/caa28a79efde013f0397 by @twbcs
Devise 3.2.4
https://gist.github.com/9662064 by @danny8376
Devise 2.0
https://gist.github.com/2410992 by @tomchentw (thanks to @l4u and @gugod)
Undated translations

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/patrotom/d40775e9a3a91df95cf51e72a53a236a by @patrotom (Devise v4.7.1)
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
https://gist.github.com/jwkloos/f3136056b96241f1d46f (polite) by @jwkloos
https://gist.github.com/M1dgard/a87894bb529c7e93768a6f356764c59a (Devise 4.3, high quality translation, polite) by @Midgard
https://gist.github.com/M1dgard/3fe21ad4d4f7db288c51f84fbfb5d9b4 (Devise 4.3, high quality translation, casual) by @Midgard
https://github.com/F3PiX/Devise-i18n-checklist/blob/master/devise.nl.yml (Devise 4.6, politely informal, user centered wording) by Maud de Vries

English (default)

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

This file will be added automatically when using the generator.

Estonian (devise.et.yml)

https://gist.github.com/Fornacula/b7a3d79ec227242e4aa8572f0e511bd5 by @Fornacula (Devise v4.7.1)

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/leopirolo/b148850bcc1f7718a99d7f8b2b85ddbf by @leopirolo (Devise 4.6.2)
https://gist.github.com/qsypoq/4cf3b858ff8242ffb013 by @Qsypoq (Devise 3.5.3)
https://gist.github.com/13a7d64eb6f1351363e8 by @GRoguelon (Devise 3.4.1)
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/chinito/fe7f6fd9df92c2cd2a7479cf8ec5a48a" (Du) by @chinito (Devise 4.6.2)
https://gist.github.com/5minpause/d0de149ce69e283ce5339f2dbd0ef8b0 (Sie) by @5minpause (Devise 4.6.2)
https://gist.github.com/thomasklemm/6821669 (Du) by @thomasklemm (Devise 3.1)
https://gist.github.com/wintersolutions/377b413424444ec61133 (Sie) by @wintersoutions (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/b709e941178ca3f8a14a2ebcb6f72eef by @AlexAvlonitis (Devise 4.0)
https://gist.github.com/4390007 by @johndel

devise.el.yml
https://gist.github.com/dklisiaris/09165affb404d6d2bb6e by @dklisiaris (for Devise 3.4.1)

Haitian Creole (devise.ht.yml)

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

Hindi (devise.hi.yml)

https://gist.github.com/swapnilchincholkar/6528abd151dc0e8f2ee4690b0f8bae41 by @swapnilchincholkar

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
https://gist.github.com/ardianys/d4eea8cf005dc7c03fdd, by @ardianys (Devise 3.2) forked from @yulrizka
https://gist.github.com/freeskys/539cac860badae94a26a, by freeskys (Devise >= 3.4.1)
https://gist.github.com/piharpi/77bac07738228521267232ea634ff4a9, by piharpi (Devise >= 4.7.1)

Italian (devise.it.yml)

https://gist.github.com/iwan/91c724774594c8b484c95ff1db5d1a15, by epistrephein and @iwan
https://gist.github.com/epistrephein/fc6d1bc7081af8d9f0ee, by epistrephein (Devise 3.5)
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

(>= 3.4.0) https://gist.github.com/satour/6c15f27211fdc0de58b4 by @satour
(>= 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
https://github.com/ryush00/devise-i18n/commit/73bb67c6abd8bcfb652b47ec29ab4db67d684b30 by @ryush00
https://gist.github.com/JuYeong0413/e2c67b081e904bfc343890164e8b415a by @JuYeong0413 (Devise 4.7.1)

Latvian (devise.lv.yml)

https://gist.github.com/1226317 by @mak-it
https://gist.github.com/8222620 by @AMekss (Devise 3.2)

Lithuanian (devise.lt.yml)

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

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 (~> v4.2.0). Updated at 2023/08/20

Romanian (devise.ro.yml)

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

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

https://gist.github.com/2837770 by @batamire (devise >= 2.1)
Updated to Devise 4.3 devise.sr.yml

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
https://gist.github.com/f3d8c313e9e9361cac75 (Neutral Spanish [tú] for devise 3.2.4) by @jordigg, forked from 8278002
https://gist.github.com/30fe17c6328d5deab9ec (Neutral Spanish [usted] for devise 3.2.4) by @jordigg, forked from 8278358
https://gist.github.com/daao87/e9a0be2f302c971f9d92 (Argentina [tú] for devise 3.4.1) by @daao87
https://gist.github.com/rrussell/3b9c45c560146f35b11b67846fb629c8 by @rrussell (for Devise 4.2.0)
https://gist.github.com/gugat/9fc7df71a5fad2e594a479fe8df93a89 by @gugat (for Devise 4.3.0) , forked from 3b9c45c560146f35b11b67846fb629c8
https://gist.github.com/lmrodriguezr/d7ab31022b34145d1dcf1529515589a0 by @lmrodriguezr (for Devise 4.7.0) , forked from 9fc7df71a5fad2e594a479fe8df93a89

Swedish (devise.sv.yml)

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

Turkish (device.tr.yml)

https://gist.github.com/1564962 by @cihad
https://gist.github.com/ismailarilik/a422d1baebb5f19b03c50da825648771 by @ismailarilik (Devise 4.9)

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/timoshik/0757a1e4ca3d6911fdd7a2e816e18f5b by @timoshik (>= 4.2.0)
https://gist.github.com/1502781 by @kolodiazhnyi
https://gist.github.com/emeraldMaster/5270173 (devise >= 2.2)

Urdu (devise.ur.yml)

https://gist.github.com/Ali-raza-khan/d55f4bbec27277d9447e9e4d7875b39f by @ali-raza-khan

Thai (devise.th.yml)

https://gist.github.com/73e186ddd80d625ac3af by @not001praween001
https://gist.github.com/ybbuc/07257fc8a2d0ddbe496847a90338b474 by @ybbuc (4.4.1)

Myanmar (devise.my.yml)

https://gist.github.com/dreamingblackcat/9b1e168c77973715ae6c by @dreamingblackcat

Occitan (devise.oc.yml)

Version 4.2.0 for Mastodon by @Quent-in

Clone this wiki locally