Skip to content

Instantly share code, notes, and snippets.

View backmeupplz's full-sized avatar
💭
borodutch.com

Nikita Kolmogorov backmeupplz

💭
borodutch.com
View GitHub Profile
@backmeupplz
backmeupplz / download.js
Created May 17, 2020 14:50
Todorant frontend upload and download scripts to localize.todorant.com
const dotenv = require('dotenv')
dotenv.config({ path: `${__dirname}/../.env` })
const axios = require('axios')
const unflatten = require('flat').unflatten
const fs = require('fs')
;(async function getTranslations() {
console.log('==== Getting localizations')
const translations = (
await axios.get('https://localizer.todorant.com/localizations?tag=web')
@backmeupplz
backmeupplz / download.js
Created May 17, 2020 14:53
Todorant Telegram bot upload and download scripts to localize.todorant.com
const dotenv = require('dotenv')
dotenv.config({ path: `${__dirname}/../.env` })
const axios = require('axios')
const unflatten = require('flat').unflatten
const fs = require('fs')
const jsyaml = require('js-yaml')
;(async function getTranslations() {
console.log('==== Getting localizations')
const translations = (
@backmeupplz
backmeupplz / download.js
Created May 17, 2020 14:59
Todorant Mobile upload and download scripts to localize.todorant.com
const dotenv = require('dotenv')
dotenv.config({ path: `${__dirname}/../.env` })
const axios = require('axios')
const fs = require('fs')
;(async function getTranslations() {
console.log('==== Getting localizations')
const translations = (
await axios.get('https://localizer.todorant.com/localizations?tag=mobile')
).data.filter((l) => {