https://github.com/archinamon/i18n-checker
Simple Kotlin/Native i18n checking project with csv parser and KN io support basing on POSIX API
https://github.com/archinamon/i18n-checker
Last synced: about 1 month ago
JSON representation
Simple Kotlin/Native i18n checking project with csv parser and KN io support basing on POSIX API
- Host: GitHub
- URL: https://github.com/archinamon/i18n-checker
- Owner: Archinamon
- License: apache-2.0
- Created: 2020-10-12T21:32:20.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-10-13T12:36:15.000Z (almost 6 years ago)
- Last Synced: 2025-03-03T02:13:22.466Z (over 1 year ago)
- Language: Kotlin
- Homepage:
- Size: 74.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# I18n checker
Made for concrete business aims to designate translation errors with base language against newly translated columns.
## How it works?
1. Simple CSV parser
2. Build languages model with baseline language (default — first column)
3. Validate with a couple of RegExp patterns (html tags, UNITY curly tags, control symbols, unicode escaping sequences, C-like printf arguments)
4. Write all valid lines with problems marking (as a new column) back into csv output
5. Prints result in command line
## How to use it?
Pragma: in both cases pointing of output file path is optional policy. By default, program will create output file with `_validated` postfix in the same directory where you run it (you home directory usually).
#### If wanna run jvm executable (.jar file) (any operation system with JRE installed)
Open terminal/cmd, then type `java -jar i18n-checker.jar -h` to print usage helper.
Type `java -jar i18n-checker.jar -i ~/Downloads/path-to-file.csv -o ~/Desktop/path-to-output.csv`.
#### If wanna run macos executable (.kexe file) (only MacOS x64).
Open terminal/iterm, then type `~/Downloads/i18n-checker.kexe -h` to print usage helper.
Type `~/Downloads/i18n-checker.kexe -i ~/Downloads/path-to-file.csv -o ~/Desktop/path-to-output.csv`.
## How to build it?
Import project into IntelliJ IDEA
Open terminal in IDE and run several commands:
- to build **jvm** executable: `./gradlew jvmArchive`
- to build **macos** binary: `./gradlew macosX64Binaries`