1
0
mirror of synced 2025-12-20 10:28:40 -05:00
Commit Graph

5 Commits

Author SHA1 Message Date
Zeke Sikelianos
148c63c5dd i18n: define translatable properties in frontmatter schema (#18964)
* i18n: define translatable properties in frontmatter schema

* mark `product` frontmatter as translatable

* lint
2021-04-26 13:24:41 +00:00
James M. Greene
43d354c1d9 Crowdin script tweaks (#18516)
* Make script/fix-translation-errors.js executable

* Make script/test-render-translation.js executable

* Update script/test-render-translation.js README

Co-authored-by: Vanessa Yuen <6842965+vanessayuenn@users.noreply.github.com>
2021-03-31 17:53:55 +00:00
Vanessa Yuen
a8d54c9af7 Improvements in tools to help merge crowdin PRs (#18409)
- add `script/test-render-translation.js` to render all translated content to catch malformed liquid that would cause render errors
- improve test output for `script/fix-translation-errors.js` and `tests/content/lint-files.js`
- make it so `script/reset-translated-file.js` can handle files that have been renamed
2021-03-26 19:21:45 +00:00
James M. Greene
9e31597ee4 Use promisified fs.readFile instead of fs.promises.readFile (#18204)
* Create a readFileAsync wrapper module

* Use the readFileAsync wrapper module instead of fs.promises.readFile

* Fix require path in test
2021-03-10 17:57:10 +00:00
Vanessa Yuen
25ff6b94ff Translation tools to make our lives easier (#17712)
* create script to fix easy-to-fix frontmatter errors in translation

* improve reset-translated-file.js: allow reverting to the same file from `main` branch

* fix release-notes as well

* also lints liquid in frontmatter
2021-02-09 10:11:12 -05:00