python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Rails i18n ActiveModel: Translate error message for absence validation
I have this validation in a service class:
class Users::Updater
include ActiveModel::Validations
validates(:frozen_identification_data, absence: { message: 'Identification fields cannot be change...

Libby
Votes: 0
Answers: 1
I encountered an error while sending mail, using ActionMailer within anI18n environment
My User class has an attribute language, which holds his preferred locale. At the same time, pages have also a :locale controlled by a menu dropdown list.
I support a password_reset action via a mail ...
Matiss Horodishtiano
Votes: 0
Answers: 1
Disable loading of nested locale (I18n) folders in Rails 7
After upgrading from Rails 6 to Rails 7, there seems to be a not-yet-fully-documented change in how I18n loads the config files. In Rails 7, files in subfolders (config/locales/<folder>/* are lo...
DannyB
Votes: 0
Answers: 1
How to localize Stimulus JS value using i18n?
I am working on rails 6 application where I'm trying to store all displayed strings in locales files. I have a Stimulus controller named countdown_controller.js:
import { Controller } from "@hotw...
farha
Votes: 0
Answers: 1