translationRuner: fix translationsDirectory path

This commit is contained in:
Alex Gleason 2023-10-11 12:38:01 -05:00
parent 821fb17617
commit e3fc812204
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -15,7 +15,7 @@ interface LanguageResult {
const RFC5646_REGEXP = /^[a-z]{2,3}(?:-(?:x|[A-Za-z]{2,4}))*$/;
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 availableLanguages = fs.readdirSync(translationsDirectory).reduce((languages, filename) => {
const basename = path.basename(filename, '.json');