Utilities
The following utility functions are available:
Impostor.coerse_string_type
— Functioncoerse_string_type(v::Vector{<:AbstractString}) :: Union{String, Vector{String}}
Automatically unpack the return value of a generator function into a single string, when appropriate.
Parameters
v::Vector{<:AbstractString}
: value(s) returned by some generator function.
Example
julia> Impostor.coerse_string_type(["Mark"])
"Mark"
julia> Impostor.coerse_string_type(["Mark", "Jane"])
2-element Vector{String}:
"Mark"
"Jane"
Impostor.setlocale!
— Functionsetlocale!(loc::String)
setlocale!(loc::Vector{<:AbstractString})
Set loc
as the default locale for the current session.
Impostor.session_locale
— Functionsession_locale() :: Vector{String}
Return the current session locale.
Impostor.resetlocale!
— Functionresetlocale!()
Reset the current session locale to "en_US"
.
Missing docstring for provider_exists
. Check Documenter's build log for details.
Missing docstring for content_exists
. Check Documenter's build log for details.
Missing docstring for locale_exists
. Check Documenter's build log for details.