From 04b731b01f3071bd93458a4c0820482fc1fed735 Mon Sep 17 00:00:00 2001 From: takase1121 <20792268+takase1121@users.noreply.github.com> Date: Wed, 14 Feb 2024 14:23:10 +0800 Subject: [PATCH 1/2] add i18n back --- locales/en/template.html | 52 ++++++++++++++++++++++++++-------------- site.rb | 2 ++ 2 files changed, 36 insertions(+), 18 deletions(-) diff --git a/locales/en/template.html b/locales/en/template.html index 7a2ccd1..11a4fa5 100644 --- a/locales/en/template.html +++ b/locales/en/template.html @@ -12,35 +12,51 @@
- -

Lite XL

+ +

Lite XL

-

About

+

+ + EN +

- FAQ - Features - Screenshots - Contributors + + + English + + + + Deutsch +
-

Documentation

+

About

- Usage - Build - Default Keymap - MacOS Keymap + FAQ + Features + Screenshots + Contributors
-

Tutorials

+

Documentation

- Simple Plugin - Syntax Highlighting - API Overview - System Fonts + Usage + Build + Default Keymap + MacOS Keymap + +
+ +

Tutorials

+ + Simple Plugin + Syntax Highlighting + API Overview + System Fonts

@@ -49,7 +65,7 @@

Plugins

-

+

diff --git a/site.rb b/site.rb index 6d970ef..e23ac6b 100755 --- a/site.rb +++ b/site.rb @@ -75,6 +75,8 @@ def slugify(name) .gsub("{{ page }}", contents) .gsub("{{ title }}", title) .gsub("{{ id }}", id) + .gsub("{{ lang }}", locale) + .gsub("{{ path }}", File.join(Pathname(basename).each_filename.map { |component| component == "index" ? "" : slugify(component) })) File.write(root + target, contents) if generateIndex From 5772f9cdfcf41abfa79f53b5c053dd6ba5cd94dc Mon Sep 17 00:00:00 2001 From: takase1121 <20792268+takase1121@users.noreply.github.com> Date: Wed, 14 Feb 2024 14:27:21 +0800 Subject: [PATCH 2/2] hide i18n menu for now --- locales/en/template.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locales/en/template.html b/locales/en/template.html index 11a4fa5..833bd24 100644 --- a/locales/en/template.html +++ b/locales/en/template.html @@ -16,7 +16,7 @@

Lite XL

- +