locales(docs): convert to POSIX-style

This commit is contained in:
Ash Monty
2022-08-15 10:46:18 +02:00
parent e673289cae
commit 94060b8f53
6 changed files with 2 additions and 2 deletions

View File

@@ -28,8 +28,8 @@ router.get('/install', async (request, response) => {
function getRawDocs(locale, subpath, pageName) {
const localePath = path.join(__dirname, '../../docs', locale, subpath, `${pageName}.md`);
const defaultPath = path.join(__dirname, '../../docs', 'en-US', subpath, `${pageName}.md`);
const localePath = path.join(__dirname, '../../docs', locale.replace('-', '_'), subpath, `${pageName}.md`);
const defaultPath = path.join(__dirname, '../../docs', 'en_US', subpath, `${pageName}.md`);
if (fs.existsSync(localePath)) {
return {