File tree Expand file tree Collapse file tree 3 files changed +2
-20
lines changed Expand file tree Collapse file tree 3 files changed +2
-20
lines changed Original file line number Diff line number Diff line change @@ -37,11 +37,7 @@ class Page {
37
37
// Per https://nodejs.org/api/fs.html#fs_fs_exists_path_callback
38
38
// its better to read and handle errors than to check access/stats first
39
39
try {
40
- const {
41
- data,
42
- content,
43
- errors : frontmatterErrors ,
44
- } = await readFileContents ( fullPath , opts . languageCode )
40
+ const { data, content, errors : frontmatterErrors } = await readFileContents ( fullPath )
45
41
46
42
return {
47
43
...opts ,
Original file line number Diff line number Diff line change @@ -5,15 +5,10 @@ import fm from './frontmatter.js'
5
5
/**
6
6
* Read only the frontmatter from file
7
7
*/
8
- export default async function fmfromf ( filepath , languageCode ) {
8
+ export default async function fmfromf ( filepath ) {
9
9
let fileContent = await readFileAsync ( filepath , 'utf8' )
10
10
11
11
fileContent = encodeBracketedParentheses ( fileContent )
12
12
13
- // TODO remove this when crowdin-support issue 66 has been resolved
14
- if ( languageCode !== 'en' && fileContent . includes ( ': verdadero' ) ) {
15
- fileContent = fileContent . replace ( ': verdadero' , ': true' )
16
- }
17
-
18
13
return fm ( fileContent , { filepath } )
19
14
}
Original file line number Diff line number Diff line change @@ -566,15 +566,6 @@ describe('Page class', () => {
566
566
} )
567
567
} )
568
568
569
- test ( 'fixes translated frontmatter that includes verdadero' , async ( ) => {
570
- const page = await Page . init ( {
571
- relativePath : 'article-with-mislocalized-frontmatter.md' ,
572
- basePath : path . join ( __dirname , '../fixtures' ) ,
573
- languageCode : 'ja' ,
574
- } )
575
- expect ( page . mapTopic ) . toBe ( true )
576
- } )
577
-
578
569
describe ( 'page.versions frontmatter' , ( ) => {
579
570
// Docs Engineering issue: 972
580
571
test . skip ( 'pages that apply to older enterprise versions' , async ( ) => {
You can’t perform that action at this time.
0 commit comments