@@ -3,6 +3,7 @@ import { NOT_INITIALIZED_ERROR } from '../constants'
3
3
4
4
function renderHeader ( { meta, user, reactions } , instance ) {
5
5
const container = document . createElement ( 'div' )
6
+ container . lang = "en-US"
6
7
container . className = 'gitment-container gitment-header-container'
7
8
8
9
const likeButton = document . createElement ( 'span' )
@@ -40,6 +41,7 @@ function renderHeader({ meta, user, reactions }, instance) {
40
41
41
42
function renderComments ( { meta, comments, commentReactions, currentPage, user, error } , instance ) {
42
43
const container = document . createElement ( 'div' )
44
+ container . lang = "en-US"
43
45
container . className = 'gitment-container gitment-comments-container'
44
46
45
47
if ( error ) {
@@ -186,6 +188,7 @@ function renderComments({ meta, comments, commentReactions, currentPage, user, e
186
188
187
189
function renderEditor ( { user } , instance ) {
188
190
const container = document . createElement ( 'div' )
191
+ container . lang = "en-US"
189
192
container . className = 'gitment-container gitment-editor-container'
190
193
191
194
const shouldDisable = user . login ? '' : 'disabled'
@@ -303,6 +306,7 @@ function renderEditor({ user }, instance) {
303
306
304
307
function renderFooter ( ) {
305
308
const container = document . createElement ( 'div' )
309
+ container . lang = "en-US"
306
310
container . className = 'gitment-container gitment-footer-container'
307
311
container . innerHTML = `
308
312
Powered by
@@ -315,6 +319,7 @@ function renderFooter() {
315
319
316
320
function render ( state , instance ) {
317
321
const container = document . createElement ( 'div' )
322
+ container . lang = "en-US"
318
323
container . className = 'gitment-container gitment-root-container'
319
324
container . appendChild ( instance . renderHeader ( state , instance ) )
320
325
container . appendChild ( instance . renderComments ( state , instance ) )
0 commit comments