Skip to content

Commit 162b7c0

Browse files
fix(commands/login): Load correct locales for the login command (#13747)
1 parent fb4c637 commit 162b7c0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

plugins/commands/login/plugin.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,16 @@ class Plugin < Vagrant.plugin("2")
1313

1414
command(:login) do
1515
require File.expand_path("../../cloud/auth/login", __FILE__)
16+
init!
1617
VagrantPlugins::CloudCommand::AuthCommand::Command::Login
1718
end
19+
20+
def self.init!
21+
return if defined?(@_init)
22+
I18n.load_path << File.expand_path("../../cloud/locales/en.yml", __FILE__)
23+
I18n.reload!
24+
@_init = true
25+
end
1826
end
1927
end
2028
end

0 commit comments

Comments
 (0)