|
|
@ -41,6 +41,10 @@ describe('i18n', () => {
|
|
|
|
it('should only contain valid JSON files', async () => {
|
|
|
|
it('should only contain valid JSON files', async () => {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
fullPaths.forEach((fullPath) => {
|
|
|
|
fullPaths.forEach((fullPath) => {
|
|
|
|
|
|
|
|
if (fullPath.endsWith('_DO_NOT_EDIT_FILES_HERE.md')) {
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const hash = require(fullPath);
|
|
|
|
const hash = require(fullPath);
|
|
|
|
sourceStrings.set(fullPath.replace(sourcePath, ''), hash);
|
|
|
|
sourceStrings.set(fullPath.replace(sourcePath, ''), hash);
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -84,6 +88,10 @@ describe('i18n', () => {
|
|
|
|
it('should contain only valid JSON files', () => {
|
|
|
|
it('should contain only valid JSON files', () => {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
fullPaths.forEach((fullPath) => {
|
|
|
|
fullPaths.forEach((fullPath) => {
|
|
|
|
|
|
|
|
if (fullPath.endsWith('_DO_NOT_EDIT_FILES_HERE.md')) {
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const hash = require(fullPath);
|
|
|
|
const hash = require(fullPath);
|
|
|
|
strings.set(fullPath.replace(translationPath, ''), hash);
|
|
|
|
strings.set(fullPath.replace(translationPath, ''), hash);
|
|
|
|
});
|
|
|
|
});
|
|
|
|