Skip to content

Commit d051f1c

Browse files
authored
Merge pull request #50 from JuliaPluto/tmp
Add select_lang_dropdown
2 parents 8e8f435 + 32cf807 commit d051f1c

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/PlutoTeachingTools.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ using HypertextLiteral: @htl, @htl_str
55
using Downloads: download # used in robustlocalresouce.jl
66
using PlutoUI: Resource, LocalResource # used in robustlocalresouce.jl
77
using PlutoUI: combine # used in footnotes.jl
8+
using PlutoUI: Select # used in i8n/i8n.jl
89
using Latexify: latexify # used in latex.jl
910

1011
using PlutoLinks: @ingredients

src/i18n/i18n.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,14 @@ const language_codes_registered = Ref{Dict{AbstractLanguage,Vector{String}}}(
179179
),
180180
)
181181

182+
select_lang_dropdown = Select([
183+
"en" => "English",
184+
"de" => "German/Deutsch",
185+
"es" => "Spanish/Español",
186+
"ru" => "Russian",
187+
"zh" => "Chinese",
188+
]);
189+
182190
# Allow users to register additional languages
183191
function register_language!(str::AbstractString, lang::Lang) where {Lang<:AbstractLanguage}
184192
languages_registered[][str] = lang

0 commit comments

Comments
 (0)