Skip to content

Commit e590fa4

Browse files
author
James (ODSC)
authored
Merge pull request #146 from jpmckinney/langcode
feat: Add lang attribute to html tag
2 parents a1816d1 + 197f959 commit e590fa4

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
77

88
## [Unreleased]
99

10+
11+
### Added
12+
13+
- Add `lang` attribute to `html` tag.
14+
1015
### Fixed
1116

1217
- If a file is expired, the error message states the correct DELETE_FILES_AFTER_DAYS value, instead of the default of 7.

cove/templates/base.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
{% load static %}
33
{% load bootstrap3 %}
44
{% load i18n %}
5-
<html>
5+
{% get_current_language as LANGUAGE_CODE %}
6+
<html lang="{{ LANGUAGE_CODE }}">
67
<head>
78
<meta http-equiv="X-UA-Compatible" content="IE=edge">
89
{% block after_head %}

0 commit comments

Comments
 (0)