https://github.com/JuliaLang/julia
Raw File
Tip revision: 53725f70d597ec585154b298d61c7b00e4dde416 authored by Martin Holters on 03 March 2017, 08:10:56 UTC
patch rdims
Tip revision: 53725f7
i18n.jl
# This file is a part of Julia. License is MIT: http://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
back to top