translationRuner: fix translationsDirectory path
This commit is contained in:
parent
821fb17617
commit
e3fc812204
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ interface LanguageResult {
|
||||||
const RFC5646_REGEXP = /^[a-z]{2,3}(?:-(?:x|[A-Za-z]{2,4}))*$/;
|
const RFC5646_REGEXP = /^[a-z]{2,3}(?:-(?:x|[A-Za-z]{2,4}))*$/;
|
||||||
|
|
||||||
const rootDirectory = path.resolve(__dirname, '..');
|
const rootDirectory = path.resolve(__dirname, '..');
|
||||||
const translationsDirectory = path.resolve(rootDirectory, 'app', 'soapbox', 'locales');
|
const translationsDirectory = path.resolve(rootDirectory, 'src', 'locales');
|
||||||
const messagesDirectory = path.resolve(rootDirectory, 'build', 'messages');
|
const messagesDirectory = path.resolve(rootDirectory, 'build', 'messages');
|
||||||
const availableLanguages = fs.readdirSync(translationsDirectory).reduce((languages, filename) => {
|
const availableLanguages = fs.readdirSync(translationsDirectory).reduce((languages, filename) => {
|
||||||
const basename = path.basename(filename, '.json');
|
const basename = path.basename(filename, '.json');
|
||||||
|
|
Loading…
Reference in a new issue