Skip to content

Instantly share code, notes, and snippets.

View fayomihorace's full-sized avatar

Horace Julius Folahan FAYOMI fayomihorace

View GitHub Profile
@sepgh
sepgh / potranslate.py
Last active July 8, 2024 23:50
A Django command to automatically add translations to po files
import json
import requests
from django.core.management.base import BaseCommand
from os.path import exists
import polib
class Command(BaseCommand):
"""
Complete missing and fuzzy translations of po files