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

  • Home
  • SEARCH
  • 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 6787593
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:23:05+00:00 2026-05-26T17:23:05+00:00

Heroku does not seem to be loading config/locales/pt.yml . (Language is being set correctly

  • 0

Heroku does not seem to be loading config/locales/pt.yml. (Language is being set correctly to pt.)

I18n is working perfectly on localhost, but not on my heroku server.
Code is at https://github.com/aneves/deficit-puzzle

localhost:

$ rails console
Loading development environment (Rails 3.0.5)
irb(main):001:0> I18n.t(:Edit)
=> "Editar"

heroku:

$ heroku console
Ruby console for deficit-puzzle.heroku.com
>> I18n.t(:Edit)
=> "translation missing: pt.Edit"

possible dups:

There are SO matches for my problem, but those are dead threads. I do not want to open a bounty on a thread whose OP left comments unanswered, I’d rather have a good question with good follow up. Also, the questions do not pinpoint the problem accurately and, so, the answers miss the point.

  1. One has no answer and OP did not follow up on comments;
  2. Another has only an answer that misses the point, and OP does not follow up on the last comment either.
  • 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-26T17:23:06+00:00Added an answer on May 26, 2026 at 5:23 pm

    Curiously, data were appearing in I18n.backend as expected but were not individually selectable using I18n.t

    This led to the realization that the load path must be configured correctly for Rails to find the translation files, but that it was not parsing them properly.

    This led to @ANeves discovering that a BOM was disrupting Heroku’s ability to parse the files which resulted in the fix of removing the offending BOM.


    Wikipedia on BOM in UTF-8

    The Unicode Standard does permit the BOM in UTF-8, but does not
    require or recommend
    its use. Byte order has no meaning in
    UTF-8
    so in UTF-8 the BOM serves only to identify a text stream or
    file as UTF-8.

    Many Windows programs (including Windows Notepad) add BOMs
    to UTF-8 files by default.

    If future readers are on ruby-1.9 consider reading about common encoding problems.

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

Sidebar

Related Questions

As far as I understand heroku does not allow to store uploaded files for
My webhost is Heroku, which does not allow files to be saved to the
Since Heroku does not allow saving dynamic files to disk, I've run into a
I'm using heroku as my host..It was working fine. Then I installed action_mailer_tls and
I have configured my domain to heroku IPs 75.101.163.44 75.101.145.87 174.129.212.2 But it's not
I'm not sure that I'm using the correct language here so I will give
Kept getting DATABASE_URL does not match any of your databases ! Could not resolve
I and one other person is developing a rails app. Does heroku allow multiple
Hope my question does not pose as too wide. So I try to frame
I am trying to get a simple image upload app working on Heroku using

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.