Giter Club home page Giter Club logo

Comments (1)

f1refa11 avatar f1refa11 commented on June 1, 2024 1

For now, the app doesn't have some sort of translation app like Weblate or Crowdin, but as far as i know, you can submit a new localization by:

  1. adding it-it.dart language file(based on en_us.dart) with translated messages(don't forget to change the class name on line 1 to ItIt)
  2. and then adding a new localization in translation.dart:
import 'package:get/get.dart';
import 'package:todark/translation/ar_ar.dart';
import 'package:todark/translation/de_de.dart';
import 'package:todark/translation/en_us.dart';
import 'package:todark/translation/es_es.dart';
import 'package:todark/translation/fa_ir.dart';
import 'package:todark/translation/fr_fr.dart';
import 'package:todark/translation/ru_ru.dart';
import 'package:todark/translation/zh_cn.dart';
import 'package:todark/translation/zh_tw.dart';
import 'package:todark/translation/it_it.dart'; // add this line

class Translation extends Translations {
  @override
  Map<String, Map<String, String>> get keys => {
        'ru_RU': RuRu().messages,
        'en_US': EnUs().messages,
        'zh_CN': ZhCN().messages,
        'zh_TW': ZhTw().messages,
        'fa_IR': FaIr().messages,
        'ar_AR': ArAr().messages,
        'es_ES': EsEs().messages,
        'fr_FR': FrFr().messages,
        'de_DE': DeDe().messages,
		'it_IT': ItIt().messages // add this line
      };
}

from todark.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.