|
@ -18,7 +18,7 @@ |
|
|
%ul |
|
|
%ul |
|
|
-I18n.backend.available_locales.each do |locale| |
|
|
-I18n.backend.available_locales.each do |locale| |
|
|
%li |
|
|
%li |
|
|
%a{href: request.original_url.gsub(/^(https?:\/\/)(..\.)?(.*)$/, '\1' + locale + '.\3')} |
|
|
%a{href: request.original_url.gsub(/^(https?:\/\/)(preview\-)?(..\.)?(.*)$/, '\1\2' + locale + '.\4')} |
|
|
=_! locale.upcase |
|
|
=_! locale.upcase |
|
|
%span=I18n.t("languages.#{locale}", locale: locale, context: I18n.t("languages.#{locale}")) |
|
|
%span=I18n.t("languages.#{locale}", locale: locale, context: I18n.t("languages.#{locale}")) |
|
|
.copy |
|
|
.copy |
|
|