mollusk 0e4acfb8f2 fix incorrect folder name for julia-0.6.x
Former-commit-id: ef2c7401e0876f22d2f7762d182cfbcd5a7d9c70
2018-06-11 03:28:36 -07:00

27 lines
415 B
Julia

# This file is a part of Julia. License is MIT: https://julialang.org/license
module I18n
export locale
LOCALE = nothing
CALLBACKS = Function[]
function locale()
if LOCALE === nothing
# XXX:TBD return default locale
return ""
end
LOCALE
end
function locale(s::String)
global LOCALE = s
# XXX:TBD call setlocale
for cb in CALLBACKS
cb()
end
end
end # module