Expose content language in HTML
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
@@ -23,6 +23,7 @@ const postData = {
|
||||
body: "My content",
|
||||
insertedAt: "2020-12-02T09:01:20.873Z",
|
||||
tags: [],
|
||||
language: "en",
|
||||
};
|
||||
|
||||
const generateWrapper = (
|
||||
|
||||
@@ -4,7 +4,9 @@ exports[`PostListItem renders post list item with basic informations 1`] = `
|
||||
<a href="/p/my-blog-post-some-uuid" class="post-minimalist-card-wrapper" dir="auto">
|
||||
<!---->
|
||||
<div class="title-info-wrapper has-text-grey-dark">
|
||||
<h3 class="post-minimalist-title">My Blog Post</h3>
|
||||
<h3 lang="en" class="post-minimalist-title">
|
||||
My Blog Post
|
||||
</h3>
|
||||
<p class="post-publication-date"><span class="icon"><i class="mdi mdi-clock mdi-24px"></i></span> <span dir="auto" class="has-text-grey-dark">Dec 2, 2020</span></p>
|
||||
<!---->
|
||||
<!---->
|
||||
@@ -16,7 +18,9 @@ exports[`PostListItem renders post list item with publisher name 1`] = `
|
||||
<a href="/p/my-blog-post-some-uuid" class="post-minimalist-card-wrapper" dir="auto">
|
||||
<!---->
|
||||
<div class="title-info-wrapper has-text-grey-dark">
|
||||
<h3 class="post-minimalist-title">My Blog Post</h3>
|
||||
<h3 lang="en" class="post-minimalist-title">
|
||||
My Blog Post
|
||||
</h3>
|
||||
<p class="post-publication-date"><span class="icon"><i class="mdi mdi-clock mdi-24px"></i></span> <span dir="auto" class="has-text-grey-dark">Dec 2, 2020</span></p>
|
||||
<!---->
|
||||
<p class="post-publisher has-text-grey-dark"><span class="icon"><i class="mdi mdi-account-edit mdi-24px"></i></span> <span>Published by <b class="has-text-weight-medium">An author</b></span></p>
|
||||
@@ -28,7 +32,9 @@ exports[`PostListItem renders post list item with tags 1`] = `
|
||||
<a href="/p/my-blog-post-some-uuid" class="post-minimalist-card-wrapper" dir="auto">
|
||||
<!---->
|
||||
<div class="title-info-wrapper has-text-grey-dark">
|
||||
<h3 class="post-minimalist-title">My Blog Post</h3>
|
||||
<h3 lang="en" class="post-minimalist-title">
|
||||
My Blog Post
|
||||
</h3>
|
||||
<p class="post-publication-date"><span class="icon"><i class="mdi mdi-clock mdi-24px"></i></span> <span dir="auto" class="has-text-grey-dark">Dec 2, 2020</span></p>
|
||||
<div class="tags" style="display: inline;"><span class="icon"><i class="mdi mdi-tag mdi-24px"></i></span> <span class="tag"><!----><span class="">A tag</span>
|
||||
<!----></span>
|
||||
|
||||
@@ -111,6 +111,7 @@ export const eventCommentThreadsMock = {
|
||||
deletedAt: null,
|
||||
insertedAt: "2020-12-03T09:02:00Z",
|
||||
isAnnouncement: false,
|
||||
language: "en",
|
||||
},
|
||||
{
|
||||
__typename: "Comment",
|
||||
@@ -141,6 +142,7 @@ export const eventCommentThreadsMock = {
|
||||
deletedAt: null,
|
||||
insertedAt: "2020-12-03T11:02:00Z",
|
||||
isAnnouncement: false,
|
||||
language: "en",
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -185,6 +187,7 @@ export const newCommentForEventResponse: DataMock = {
|
||||
deletedAt: null,
|
||||
insertedAt: "2020-12-03T13:02:00Z",
|
||||
isAnnouncement: false,
|
||||
language: "en",
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user