Git Product home page Git Product logo

lokalenow's Introduction

LokaleNow

An android gradle plugin for automating localization. It will automaticall generate all strings.xml files for your desired languages.

Implementation

Inlclude the plugin in app level gradle

plugins {
  ...
  ...
  id("io.github.farimarwat.lokalenow") version "1.2"
}

Also make sure that gradlePluginPortal() in included in settings.gradle.kts

pluginManagement {
    repositories {
        google()
        mavenCentral()
        gradlePluginPortal()

    }
}

Now apply languages

Outside of the android{} block use this:

android{
  ...
  ...
}
lokalenow{
    listLang = listOf("fr","ru","ar")
}

Done.

When you will build, It will automatically generate strings.xml file according to requested languages.

Note:

This gradle plugin is developed based upon google translate api. It may some time not work due to frequent requests.

In case of any errors:

Kindly perform these steps:

  1. Build>Clean Project
  2. Build>Rebuild Project

What Next:

There is need to handle symbols while translation. If you want to improve the conversion process then feel free to contribute.

Version History

1.2

Minor bugs fixed

1.1

strings.xml path issue fixed for mac

1.0

Initial commit

Buy me a cup of Tea

If you want to support me then buy me a cup of tea: Buy

lokalenow's People

Contributors

farimarwat avatar

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.