Skip to content

Instantly share code, notes, and snippets.

@zaach
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zaach/8982426 to your computer and use it in GitHub Desktop.
Save zaach/8982426 to your computer and use it in GitHub Desktop.
#!/usr/bin/env node
var json = require('./languages_all');
Object.keys(json).forEach(function(key) {
console.log(key);
});
FILES=$(cat)
for f in $FILES
do
echo "Processing $f"
DIR="./locale/$f/LC_MESSAGES/"
echo "$DIR"
mkdir -p $DIR
cp ./locale/templates/LC_MESSAGES/server.pot "$DIR/server.po"
cp ./locale/templates/LC_MESSAGES/client.pot "$DIR/client.po"
done
af
an
ar
ast
be
bg
bn-BD
bn-IN
br
bs
ca
cs
cy
da
de
el
en-GB
en-US
en-ZA
eo
es-AR
es-CL
es-ES
es-MX
et
eu
fa
fi
fr
fy-NL
ga-IE
gd
gl
gu-IN
he
hi-IN
hr
hu
hy-AM
id
is
it
ja linux win32
ja-JP-mac osx
kk
kn
ko
ku
lt
lv
mai
mk
ml
mr
nb-NO
nl
nn-NO
or
pa-IN
pl
pt-BR
pt-PT
rm
ro
ru
si
sk
sl
son
sq
sr
sv-SE
ta
te
th
tr
uk
vi
xh
zh-CN
zh-TW
zu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment