|
Install
# français
fr = {
"hi" => "bonjour",
"welcome" => "bienvenue"
}
# espanol
es = {
"hi" => "hola",
"welcome" => "bienvenida"
}SimplyGlobal.add_language_hash(:fr, fr) SimplyGlobal.add_language_hash(:es, es) You will end up with a file named simplyglobal.rb that looks like this : # français
fr = {
"hi" => "bonjour",
"welcome" => "bienvenue"
}
# espanol
es = {
"hi" => "hola",
"welcome" => "bienvenida"
}
SimplyGlobal.add_language_hash(:fr, fr)
SimplyGlobal.add_language_hash(:es, es)In development, this file will be loaded every request. In production, it is loaded once. |
Sign in to add a comment