0
0
Fork 0

Fix regular expression for RFC 5646 (regression from #3604) (#4133)

This commit is contained in:
Yamagishi Kazutoshi 2017-07-10 21:02:18 +09:00 committed by Eugen Rochko
parent 2b9721d1b3
commit 63baab088d
34 changed files with 221 additions and 62 deletions

View file

@ -2,7 +2,7 @@ const fs = require('fs');
const path = require('path');
const { default: manageTranslations } = require('react-intl-translations-manager');
const RFC5646_REGEXP = /^[a-z]{2,3}(?:|[A-Z]+)$/;
const RFC5646_REGEXP = /^[a-z]{2,3}(?:|-[A-Z]+)$/;
const rootDirectory = path.resolve(__dirname, '..', '..');
const translationsDirectory = path.resolve(rootDirectory, 'app', 'javascript', 'mastodon', 'locales');