mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Catch missing translations during test runs (#26258)
This configuration makes it so that a missing translation will raise an error during test execution. Better discover there than after deploy.
This commit is contained in:
@@ -63,6 +63,9 @@ Discourse::Application.configure do
|
||||
},
|
||||
]
|
||||
|
||||
# Catch missing translations during test runs.
|
||||
config.i18n.raise_on_missing_translations = true
|
||||
|
||||
config.after_initialize do
|
||||
ActiveRecord::LogSubscriber.backtrace_cleaner.add_silencer do |line|
|
||||
line =~ %r{lib/freedom_patches}
|
||||
|
||||
@@ -556,6 +556,7 @@ en:
|
||||
private_message_abbrev: "Msg"
|
||||
|
||||
rss_description:
|
||||
hot: "Hot topics"
|
||||
latest: "Latest topics"
|
||||
top: "Top topics"
|
||||
top_all: "All time top topics"
|
||||
@@ -1472,6 +1473,7 @@ en:
|
||||
description: "External sources that have linked to this site the most."
|
||||
top_referred_topics:
|
||||
title: "Top Referred Topics"
|
||||
xaxis: ""
|
||||
labels:
|
||||
num_clicks: "Clicks"
|
||||
topic: "Topic"
|
||||
|
||||
Reference in New Issue
Block a user