GithubHelp home page GithubHelp logo

ttpho / resource_to_json Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 4 KB

Conver content Android strings.xml file, content iOS Localizable.strings file to JSON content

License: MIT License

Dart 100.00%

resource_to_json's Introduction

resource_to_json

Conver content Android strings.xml file, content iOS Localizable.strings file to JSON content

Run

dart run bin/resource_to_json.dart

Android strings.xml

<resources xmlns:tools="http://schemas.android.com/tools">
    <string name="logout">Logout</string>
    <string name="contact_us">Contact Us</string>
    <string name="customer_service">Customer Service</string>
    <string name="store">Store</string>
    <string name="privacy_policy">Privacy Policy</string>
    <string name="policies">Policies</string>
    <string name="terms">Terms</string>
    <string name="subscription_terms">Subscription Terms</string>
</resources>
{
  "logout": "Logout",
  "contact_us": "Contact Us",
  "customer_service": "Customer Service",
  "store": "Store",
  "privacy_policy": "Privacy Policy",
  "policies": "Policies",
  "terms": "Terms",
  "subscription_terms": "Subscription Terms"
}

iOS Localizable.strings


/* Answer for question about Catalan */
"Catalan.Answer" = "Catalan";

/* No comment provided by engineer. */
"Catalan.Choices" = "Spanish;Catalan;French;Portuguese;Italian";

/* No comment provided by engineer. */
"Catalan.Question" = "Which language is spoken in Andorra?";

/* Correct message */
"correctly" = "correctly";

/* No comment provided by engineer. */
"DC.Answer" = "Washington D.C.";

/* No comment provided by engineer. */
"DC.Choices" = "New York City;San Francisco;Atlanta;Washington D.C.;Dallas;Los Angeles";

/* No comment provided by engineer. */
"DC.Question" = "What is the capital of the United States?";

/* Incorrect message */
"incorrectly" = "incorrectly";

/* No comment provided by engineer. */
"Mexico.Answer" = "September 16";

/* No comment provided by engineer. */
"Mexico.Choices" = "January 5;February 24;March 21;May 5;September 16;November 1;November 20";

/* No comment provided by engineer. */
"Mexico.Question" = "What day is Mexican Independence Day?";

/* No comment provided by engineer. */
"Next" = "Next";

{
  "Catalan.Answer": "Catalan",
  "Catalan.Choices": "Spanish;Catalan;French;Portuguese;Italian",
  "Catalan.Question": "Which language is spoken in Andorra?",
  "correctly": "correctly",
  "DC.Answer": "Washington D.C.",
  "DC.Choices": "New York City;San Francisco;Atlanta;Washington D.C.;Dallas;Los Angeles",
  "DC.Question": "What is the capital of the United States?",
  "incorrectly": "incorrectly",
  "Mexico.Answer": "September 16",
  "Mexico.Choices": "January 5;February 24;March 21;May 5;September 16;November 1;November 20",
  "Mexico.Question": "What day is Mexican Independence Day?",
  "Next": "Next"
}

resource_to_json's People

Contributors

ttpho avatar

Watchers

 avatar  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.