mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 20:11:19 -04:00
Hook up localized messages.json to website
Right now we use the navigator language to determine localization and replace the website contents with translated strings.
This commit is contained in:
parent
9140c7648c
commit
f6517f60ce
3 changed files with 65 additions and 2 deletions
|
@ -94,6 +94,8 @@ task('build', 'build the snowflake proxy', function() {
|
|||
execSync(`cp -r ${STATIC}/ ${outDir}/`);
|
||||
copyTranslations(outDir);
|
||||
concatJS(outDir, 'badge', 'embed.js', availableLangs());
|
||||
writeFileSync(`${outDir}/index.js`, availableLangs(), 'utf8');
|
||||
execSync(`cat ${STATIC}/index.js >> ${outDir}/index.js`);
|
||||
console.log('Snowflake prepared.');
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue