Class: RemoteTranslationLoader::Railtie

Inherits:
Rails::Railtie
  • Object
show all
Defined in:
lib/remote_translation_loader/railtie.rb

Overview

Zero-config Rails integration. Configure once:

RemoteTranslationLoader.configure do |config|
config.sources = ["https://example.com/en.yml", "s3://bucket/fr.yml"]
config.namespace = "remote"
end

and translations are fetched on boot, and refreshed on every reload in development.