fix: update html lang attribute for I18n

- Change the lang attribute of the HTML tag to use the current I18n locale
- This change ensures that the application correctly reflects the user's language preferences

Updating this attribute improves accessibility and SEO by helping search engines and assistive technologies better understand the language of the content.
This commit is contained in:
songtianlun 2025-02-22 15:19:40 +08:00
parent 5a82fc9a10
commit d331a73a85

View File

@ -1,5 +1,5 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="<%= I18n.locale %>">
<head> <head>
<title><%= content_for(:title) || "Today Ai Weather" %></title> <title><%= content_for(:title) || "Today Ai Weather" %></title>
<meta name="viewport" content="width=device-width,initial-scale=1"> <meta name="viewport" content="width=device-width,initial-scale=1">