Completa i18n IT/EN/FR/DE/ES su sito pubblico, area autenticata e admin.
Tutte le view marketing, legali, viewer, dashboard e admin usano t(); mailer utente-facing e flash localizzati; admin con LocaleResolver e selettore lingua. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
require "rails_helper"
|
||||
|
||||
RSpec.describe "Public i18n pages", type: :request do
|
||||
it "mostra privacy in inglese con cookie mltv_locale" do
|
||||
cookies[:mltv_locale] = "en"
|
||||
get public_privacy_path
|
||||
expect(response).to have_http_status(:ok)
|
||||
expect(response.body).to include("Notice on the processing of personal data")
|
||||
expect(response.body).not_to include("Informativa sul trattamento")
|
||||
end
|
||||
|
||||
it "mostra login in francese" do
|
||||
cookies[:mltv_locale] = "fr"
|
||||
get public_login_path
|
||||
expect(response).to have_http_status(:ok)
|
||||
expect(response.body).to include("Connexion")
|
||||
expect(response.body).not_to include("translation missing")
|
||||
end
|
||||
|
||||
it "mostra features in tedesco" do
|
||||
cookies[:mltv_locale] = "de"
|
||||
get public_features_path
|
||||
expect(response).to have_http_status(:ok)
|
||||
expect(response.body).not_to include("translation missing")
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user