feat: add click-to-copy IP address with localized tooltip

This commit is contained in:
NetworkCats
2026-03-07 03:56:05 +08:00
parent 30b65d5b25
commit 2ed0bf3b6d
18 changed files with 103 additions and 1 deletions
+4
View File
@@ -100,6 +100,7 @@ struct IndexTemplate {
t_footer_source: &'static str,
t_footer_db: &'static str,
t_footer_attribution: &'static str,
t_copied: &'static str,
t_table_aria: &'static str,
t_faq_aria: &'static str,
t_nav_aria: &'static str,
@@ -332,6 +333,7 @@ fn build_translations(locale: Locale) -> Translations {
t_footer_attribution: i18n::translate(locale, "IP data provided by:"),
t_error: i18n::translate(locale, "Error"),
t_go_home: i18n::translate(locale, "Go to Home"),
t_copied: i18n::translate(locale, "Copied"),
t_table_aria: i18n::translate(locale, "IP address information"),
t_faq_aria: i18n::translate(locale, "Frequently Asked Questions"),
t_nav_aria: i18n::translate(locale, "Project links"),
@@ -391,6 +393,7 @@ struct Translations {
t_footer_attribution: &'static str,
t_error: &'static str,
t_go_home: &'static str,
t_copied: &'static str,
t_table_aria: &'static str,
t_faq_aria: &'static str,
t_nav_aria: &'static str,
@@ -636,6 +639,7 @@ pub async fn root(
t_footer_source: t.t_footer_source,
t_footer_db: t.t_footer_db,
t_footer_attribution: t.t_footer_attribution,
t_copied: t.t_copied,
t_table_aria: t.t_table_aria,
t_faq_aria: t.t_faq_aria,
t_nav_aria: t.t_nav_aria,