Skip to content

Commit

Permalink
v9.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jguerinet committed Nov 2, 2021
1 parent 3b6bb4f commit 964115b
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 16 deletions.
17 changes: 14 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,23 @@
# Change Log

## Version 9.0.0 (2021-11-02)

- Switched to Kotlin DSL for the Gradle files
- Updated Weave to check for duplicate values
- Updated params to be formatted in the more universal $1, $2...
- Added cleanup of smart quotes
- Clean up log messages
- Updated dependencies

## Version 8.0.1 (2019-06-06)
- Remove percentage formatting on iOS

- Remove percentage formatting on iOS

## Version 8.0.0 (2019-04-18)

- Added option to specify the casing for the key and type values in a constants config (none, camel, pascal, snake, caps)
- Renamed the `tag` stuff to `value`
- Added option to specify the casing for the key and type values in a constants config (none, camel, pascal, snake,
caps)
- Renamed the `tag` stuff to `value`

## Version 7.0.0 (2019-04-10)

Expand Down
33 changes: 20 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@

## Summary

Weave takes an online CSV file and parses the content to produce the Strings files for an Android or iOS app. It also parses the Strings for Web in the form of a JSON: an on object with a bunch of key-value pairs, the key being the String key and the value being the translated String for that language.
Weave takes an online CSV file and parses the content to produce the Strings files for an Android or iOS app. It also
parses the Strings for Web in the form of a Json: a Json object with key-value pairs, the key being the String key and
the value being the translated String for that language.

It can also parse Constants into files that you are using the same properties cross platform (ex: Analytics tags, Regex expressions).
It can also parse Constants into files that you are using the same properties cross-platform (ex: Analytics tags, Regex
expressions).

It will also show any warnings or errors that the Strings file might have.
Please note that it assumes that the file is in UTF-8 and also produces UTF-8 files.
It will also show any warnings or errors that the Strings file might have. Please note that it assumes that the file is
in UTF-8 and also produces UTF-8 files.

## Instructions

Expand All @@ -19,12 +22,15 @@ To use this:
- `keyColumnName`, which represents the name of the column where the key is stored, defaults to `key`
- `platformsColumnName`, which represents the name of the column where the supported platforms for a specific row is, defaults to `platforms`
- Any columns containing translations in your CSV file must have a header with the 2 character language Id (ex: en, fr)
- You may also add a 'platforms' column and put in a CSV list of the platforms that a particular String should be parsed for. If the column doesn't exist or the platform value is empty for a specific String it will be parsed for all platforms
- Keys must be unique, not have spaces, and not be null (the parser will inform of any of these errors when you run it)
- You can add headers (which will be parsed as comments) in your Strings file by adding or surrounding your header with '###' (or whatever you specify).For example, if you put ### General ### (or ### General), it will be parsed as `/* General */` on iOS and `<!-- General -->` on Android
- You can add formatted Strings by putting either the normal placeholder (i.e. %s for a String) if there is one argument, or numbering them
like this for multiple: %1$s, %2$s...
- Run the jar
- You may also add a 'platforms' column and put in a CSV list of the platforms that a particular String should be parsed
for. If the column doesn't exist or the platform value is empty for a specific String it will be parsed for all
platforms
- Keys must be unique, not have spaces, and not be null (the parser will inform of any errors when you run it)
- You can add headers (which will be parsed as comments) in your Strings file by adding or surrounding your header
with '###' (or whatever you specify).For example, if you put ### General ### (or ### General), it will be parsed
as `/* General */` on iOS and `<!-- General -->` on Android
- You can add formatted Strings using `$1`, `$2`, and so on.
- Run the jar

For the constants:

Expand All @@ -35,8 +41,9 @@ For the constants:

## Gradle Dependencies

- [OkHttp](http://square.github.io/okhttp/)
- [kotlinx-serialization](https://github.com/Kotlin/kotlinx.serialization)
- [OkHttp](http://square.github.io/okhttp/)
- [Okio](http://square.github.io/okio/)
- [kotlinx-serialization](https://github.com/Kotlin/kotlinx.serialization)
- [super-csv](http://super-csv.github.io/super-csv/)

## Contributors
Expand All @@ -50,7 +57,7 @@ See the [Change Log](CHANGELOG.md).

## Copyright

Copyright 2013-2019 Julien Guerinet
Copyright 2013-2021 Julien Guerinet

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down

0 comments on commit 964115b

Please sign in to comment.