mirror of
https://github.com/NetworkCats/rustyip.git
synced 2026-11-20 16:06:22 +00:00
feat: add click-to-copy IP address with localized tooltip
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user