mirror of
https://github.com/discourse/discourse.git
synced 2025-05-25 09:57:25 +08: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:
@ -36,6 +36,11 @@ class Archetype
|
||||
@archetypes[name] = Archetype.new(name, options)
|
||||
end
|
||||
|
||||
def self.deregister(name)
|
||||
@archetypes ||= {}
|
||||
@archetypes.delete(name)
|
||||
end
|
||||
|
||||
# default archetypes
|
||||
register "regular"
|
||||
register "private_message"
|
||||
|
Reference in New Issue
Block a user