Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6987479
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T18:56:35+00:00 2026-05-27T18:56:35+00:00

I am using devise for the user registration… and i want to translate it

  • 0

I am using devise for the user registration… and i want to translate it in French, I get the file traduction :

  fr:
    errors:
      messages:
        not_found: "n'a pas été trouvé(e)"
        already_confirmed: "a déjà été confirmé(e)"
        not_locked: "n'était pas verrouillé(e)"
        not_saved:
          one: "1 erreur a empéché ce %{resource} d'être sauvegardé:"
          other: "%{count} erreurs ont empéché ce %{resource} d'être sauvegardé:"
    devise:
      shared:
        sign_in: "Se connecter"
        sign_up: "S'enregistrer"
        forgot_password: "Mot de passe oublié ?"
        didnt_receive_confirmation_instructions?: "Vous n'avez pas reçu de courriel de confirmation ?"
        didnt_receive_unlock_instructions?: "Vous n'avez pas reçu de courriel de déverrouillage de votre compte ?"
        sign_in_with_omniauth: "Se connecter avec %{provider}"
        .....
        .....

And i write this on my config/application.rb :

config.i18n.default_locale = :fr

I have reboot apache but nothing to do, i don’t have any traduction on messages as “Sign In Successfull…”

Any idea?
Thank you

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T18:56:36+00:00Added an answer on May 27, 2026 at 6:56 pm

    My solution was to add

     I18n.locale = :fr
    

    If you have a problem with the production environnement, you can use :

    config.before_configuration do
      I18n.load_path += Dir[Rails.root.join('config', 'locales', '*.{rb,yml}').to_s]
      I18n.locale = :fr
      I18n.default_locale = :fr
      config.i18n.load_path += Dir[Rails.root.join('config', 'locales', '*.{rb,yml}').to_s]
      config.i18n.locale = :fr
      # bypasses rails bug with i18n in production\
      I18n.reload!
      config.i18n.reload!
    end
    
    config.i18n.locale = :fr
    config.i18n.default_locale = :fr
    

    In config/application.rb

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have already created a User Model using devise, but I now want to
I have a Rails 3 App using devise. I want to create a User/Profile
Am using the Devise plugin for user sign-in. I want to to display an
I'm using DEvise for registration and omniauth for authentication through twitter/facebook, I want to
I'm using Devise for user registration. It automatically gives me the form for a
I'm using devise to do the new user registration. Right after a new user
I want to add multiple emails to the user model while using devise, using
In my iphone application i want Device Token using the APN. How to get
I'm trying to write a registration using devise and active merchant. The form is
Right now, I have three models Post, Comment and User (using Devise ) associated

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.