Giter VIP home page Giter VIP logo

find-non-translated-keys-resx's Introduction

find-non-translated-keys-resx

Find the keys that are not translated in your .NET resx language files.

It expects all the keys in your neutral language (Settings.aspx.rex) resource file exist in your others languages files (Settings.aspx.fr.resx).

How to use it

Clone the repo and execute:

$ npm install
$ babel-node ./bin/missingkeys --langs fr,pt,de,es c:\Code\Desktop

How does it work

It looks for every .resx in the folder you give, and all the lang variations you want (in the example above : .fr.resx, .pt.resx, .de.resx, .es.resx), then check if all the keys in the base .resx (which is the neutral language resource file) exists in the other language (if the file exists).

Output

$ babel-node ./bin/missingkeys --langs fr,pt,de,es c:\Code\Desktop
# c:/Code/Desktop/App_GlobalResources/Global.de.resx
CloseDialog

# c:/Code/Desktop/App_GlobalResources/Global.es.resx
CloseDialog

# c:/Code/Desktop/User/App_LocalResources/Settings.aspx.de.resx
UserParameter

# c:/Code/Desktop/User/App_LocalResources/Settings.aspx.es.resx
UserParameter

Here, CloseDialog and UserParameter keys do not exist in the de and es variations, but they exist in neutral Settings.aspx.resx.

Structure expected

Settings.aspx.resx
Settings.aspx.fr.resx
Settings.aspx.pt.resx
Settings.aspx.de.resx
Settings.aspx.en.resx

find-non-translated-keys-resx's People

Contributors

greenkeeperio-bot avatar sderosiaux avatar

Watchers

 avatar  avatar

find-non-translated-keys-resx's Issues

Check for missing resx

Right now, it's only checking for missing keys, but we could extend the process to check for missing resx files.

If A.aspx.resx exists, and the languages to check are [fr, de], we can check if A.aspx.fr.resx and A.aspx.de.resx exist.

Add missing translations

If we detect some missing translations, and if some --add-missing-translations option is set, auto-create the missing keys with their Google translation. At your own risk.

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.