Skip to content

Instantly share code, notes, and snippets.

@sajithlaldev
sajithlaldev / localise.py
Created July 4, 2025 14:36
Automate Localisation in Flutter (easy_localization) for FREE. Configure then run python localize.py
import json
import os
import time
import requests
import html
import random
# Configuration
BASE_LANG_FILE = 'assets/translations/en.json'
TARGET_LANGS = ['ar', 'bg', 'cs', 'da', 'de', 'el', 'es', 'fi', 'fr', 'he', 'hi', 'hu', 'id', 'it', 'ja', 'ko', 'ms', 'nb', 'nl', 'pl', 'pt', 'ro', 'ru', 'sv', 'th', 'tl', 'tr', 'uk', 'vi', 'zh'] # All available locales
@sajithlaldev
sajithlaldev / AnimationControllerAdapter.dart
Created June 6, 2025 12:25
Smooth Transition animation in Flutter using flutter_physics
import 'package:flutter/material.dart';
import 'package:flutter_physics/flutter_physics.dart';
class AnimationsControllerAdapter implements AnimationController {
AnimationsControllerAdapter(this.physicsController);
final PhysicsController physicsController;
@override
Duration? get duration => physicsController.duration;