mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-28 20:53:24 +10:00
Filter out non .json files
This commit is contained in:
parent
1eeccb9153
commit
c9ce608e1f
1 changed files with 1 additions and 0 deletions
|
|
@ -56,6 +56,7 @@ const targetLangChoices = () => {
|
|||
const filenames = fs.readdirSync(folder);
|
||||
|
||||
const choices = filenames
|
||||
.filter(name => name.endsWith('.json'))
|
||||
.map(name => name.split('.')[0])
|
||||
.filter(code => code !== SOURCE_LANG.value)
|
||||
.map(code => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue