Revision 052def7e17de2bdbbae229f72d4aa004b2788d19 authored by Jeff Bezanson on 12 January 2018, 15:58:46 UTC, committed by GitHub on 12 January 2018, 15:58:46 UTC
1 parent 899fde0
Raw File
i18n.jl
# 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
back to top