sforkowany z mirror/soapbox
translationRunner: fix root directory
rodzic
2722e418f2
commit
0e1a369c36
|
@ -6,7 +6,7 @@ const { default: manageTranslations, readMessageFiles } = require('react-intl-tr
|
|||
|
||||
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 messagesDirectory = path.resolve(rootDirectory, 'build', 'messages');
|
||||
const availableLanguages = fs.readdirSync(translationsDirectory).reduce((languages, filename) => {
|
||||
|
|
Ładowanie…
Reference in New Issue