Add locale file to load path only when the provider is required
This commit is contained in:
parent
1fcdc07a3a
commit
0ad76b753a
2 changed files with 4 additions and 2 deletions
|
@ -1,4 +1,2 @@
|
|||
require "vagrant-lxc/version"
|
||||
require "vagrant-lxc/plugin"
|
||||
|
||||
I18n.load_path << File.expand_path(File.dirname(__FILE__) + '/../locales/en.yml')
|
||||
|
|
|
@ -11,6 +11,10 @@ module Vagrant
|
|||
|
||||
provider(:lxc) do
|
||||
require File.expand_path("../provider", __FILE__)
|
||||
|
||||
I18n.load_path << File.expand_path(File.dirname(__FILE__) + '/../locales/en.yml')
|
||||
I18n.reload!
|
||||
|
||||
Provider
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue