Skip to content

Commit 2453b2a

Browse files
committed
set lang attr on <html> according to user's choice
Signed-off-by: BinotaLIU <binota@binota.org>
1 parent e72bcfe commit 2453b2a

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

public/views/codimd.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html>
2-
<html lang="en">
2+
<html lang="<%= getLocale() %>">
33

44
<head>
55
<%- include codimd/head %>

public/views/error.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html>
2-
<html lang="en">
2+
<html lang="<%= getLocale() %>">
33

44
<head>
55
<%- include codimd/head %>

public/views/index.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html>
2-
<html lang="en">
2+
<html lang="<%= getLocale() %>">
33

44
<head>
55
<%- include index/head %>

public/views/pretty.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html>
2-
<html lang="en">
2+
<html lang="<%= getLocale() %>">
33

44
<head>
55
<meta charset="utf-8">

public/views/slide.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!doctype html>
2-
<html lang="en">
2+
<html lang="<%= getLocale() %>">
33
<head>
44
<meta charset="utf-8">
55
<meta name="apple-mobile-web-app-capable" content="yes">

0 commit comments

Comments
 (0)