Skip to content

Instantly share code, notes, and snippets.

@teekay
teekay / extract-localizations.js
Last active June 24, 2020 12:20
Convert LocBaml translations to CSV to import from Localization Manager
"use strict";
var _ = require("lodash");
var fs = require("fs");
var csvjson = require("csvjson");
var locales = ["cs", "de", "es"]; // customize based on locales of your translations
translate();
function translate() {
var translations = locales.map(culture => {
### Keybase proof
I hereby claim:
* I am teekay on github.
* I am tomaskohl (https://keybase.io/tomaskohl) on keybase.
* I have a public key whose fingerprint is C6FC 8756 9EA6 E81E DFBA 928A 4245 9ECD 733E 7B85
To claim this, I am signing this object: