Skip to content

Commit

Permalink
fixed build on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Shane Osbourne committed Nov 27, 2024
1 parent bd52889 commit 56d3cb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions special-pages/translations.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { readdir } from 'fs/promises';
import { join, basename } from 'node:path';
import { readFileSync, writeFileSync } from 'node:fs';

const paths = ['pages/new-tab'];
const paths = [join('pages', 'new-tab')];
const base = {
smartling: {
string_format: 'icu',
Expand All @@ -28,7 +28,7 @@ if (isLaunchFile(import.meta.url)) {
*/
async function processPage(path) {
const targetName = basename(path);
const outputFile = `${path}/src/locales/en/${targetName}.json`;
const outputFile = join(path, '/src/locales/en', `${targetName}.json`);
const dirents = await readdir(path, { withFileTypes: true, recursive: true });
const rawEntries = dirents
.filter((entry) => entry.isFile() && entry.name === 'strings.json')
Expand Down

0 comments on commit 56d3cb8

Please sign in to comment.