Skip to content

Commit e79558d

Browse files
authored
Merge pull request #335 from fs-webdev/languageDirectionSupport
adding "dir" to layout.ejs html element safely
2 parents 7c0a03a + 57c3fe4 commit e79558d

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG-FRONTIER.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 8.1.0
2+
- adding `dir` property to html element in layout.ejs
3+
- `dir` is set with `languageDir` defined in snow's res-locals.js middleware
4+
15
## 8.0.2
26
- allow fullySpecified: false for mjs files
37
- Brought about because of this issue we had with @react-spring.

packages/react-scripts/layout/views/layout.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="<%= simpleLocale %>">
2+
<html dir="<%= typeof languageDir !== 'undefined' ? languageDir : 'ltr' %>" lang="<%= simpleLocale %>">
33
<head>
44
<title>FamilySearch.org</title>
55

packages/react-scripts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@fs/react-scripts",
3-
"version": "8.0.2",
3+
"version": "8.1.0",
44
"upstreamVersion": "5.0.1",
55
"description": "Configuration and scripts for Create React App.",
66
"repository": {

0 commit comments

Comments
 (0)