From 90184ca3e7049188709bb804119833a6bfd263d4 Mon Sep 17 00:00:00 2001 From: Dillon Date: Wed, 15 Apr 2020 15:46:50 +0800 Subject: feat(search): add local search (#231) * feat(search): add local search * docs: add docs for search --- i18n/en.toml | 15 +++++++++++++++ i18n/fr.toml | 23 +++++++++++++++++++++++ i18n/zh-CN.toml | 23 +++++++++++++++++++++++ 3 files changed, 61 insertions(+) (limited to 'i18n') diff --git a/i18n/en.toml b/i18n/en.toml index 6768b1e..1a62316 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -40,6 +40,21 @@ other = "More" [selectLanguage] other = "Select Language" +[search] +other = "Search" + +[searchPlaceholder] +other = "Search titles or contents..." + +[clear] +other = "Clear" + +[cancel] +other = "Cancel" + +[noResultsFound] +other = "No results found" + [switchTheme] other = "Switch Theme" # === partials/header.html === diff --git a/i18n/fr.toml b/i18n/fr.toml index 89f8295..349d862 100644 --- a/i18n/fr.toml +++ b/i18n/fr.toml @@ -40,6 +40,21 @@ other = "Plus" [selectLanguage] other = "Choisir la langue" +[search] +other = "Chercher" + +[searchPlaceholder] +other = "Rechercher des titres, des contenus..." + +[clear] +other = "Clair" + +[cancel] +other = "Annuler" + +[noResultsFound] +other = "Aucun résultat trouvé" + [switchTheme] other = "Changer de Thème" # === partials/header.html === @@ -52,6 +67,14 @@ other = "Propulsé par %s" other = "Thème" # === partials/footer.html === +# === partials/assets.html === +[lunrLanguageLib] +other = "lib/lunr/lunr.fr.js" + +[lunrLanguageCode] +other = "fr" +# === partials/assets.html === + # === partials/plugin/share.html === [shareOn] other = "Partager sur" diff --git a/i18n/zh-CN.toml b/i18n/zh-CN.toml index 1ea516b..1037e2b 100644 --- a/i18n/zh-CN.toml +++ b/i18n/zh-CN.toml @@ -40,6 +40,21 @@ other = "更多" [selectLanguage] other = "选择语言" +[search] +other = "搜索" + +[searchPlaceholder] +other = "搜索文章标题或内容..." + +[clear] +other = "清空" + +[cancel] +other = "取消" + +[noResultsFound] +other = "没有找到结果" + [switchTheme] other = "切换主题" # === partials/header.html === @@ -52,6 +67,14 @@ other = "由 %s 强力驱动" other = "主题" # === partials/footer.html === +# === partials/assets.html === +[lunrLanguageLib] +other = "lib/lunr/lunr.zh.js" + +[lunrLanguageCode] +other = "zh" +# === partials/assets.html === + # === partials/plugin/share.html === [shareOn] other = "分享到" -- cgit v1.2.3