Commit b593b306 authored by alexandre's avatar alexandre

Better translation script

parent 7c8f64c9
#! /usr/bin/env bash
cat playground/templates/playground/underscore/*.mtpl | tr "<" "\n" | grep "t(" | cut -d "'" -f 2 | sort | uniq
echo "var lang = {"
cat playground/templates/playground/underscore/*.mtpl | \
tr "<" "\n" | \
grep "t(" | \
cut -d "'" -f 2 | \
sort | \
uniq | \
sort | \
xargs -0 | while read -r line ; do
echo " \"${line}\": \"\"",
done
echo "}"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment