README.md in xcmultilingual-0.1.0 vs README.md in xcmultilingual-0.1.1
- old
+ new
@@ -1,9 +1,11 @@
# xcmultilingual
Command line tool for Swift localizations: It parses localization files in the project and output swift file including functions with pretty complementations!
+RubyGems: [xcmultilingual | RubyGems.org | your community gem host](https://rubygems.org/gems/xcmultilingual)
+
## Installation
Add this line to your application's Gemfile:
```ruby
@@ -26,11 +28,11 @@
### 2. Create empty swift file in top level of project tree.
Named as `Multilingual.swift` in this example. **xcmultilingual** parses same and lower directries' .bundle and .lproj.
-```
+```bash
.
├── DemoApp
│ ├── AppDelegate.swift
│ ├── Base.lproj
│ ├── Images.xcassets
@@ -39,19 +41,19 @@
│ ├── Multilingual.swift
```
### 3. Execute update command with destination file path
-```
+```bash
$ xcmultingual update ./DemoApp/Multilingual.swift
```
And then convenient functions will be generated in destination swift file.
Example:
-```
+```swift
import Foundation
struct Multilingual {
enum Localizable: String {
case HELLO = "HELLO"
@@ -103,29 +105,29 @@
And now, you can access your localization string with pretty good complementations.
For example, when write: Multilingual, complementations are below:
-```
+```swift
Multilingual.Localizable
Multilingual.Animal
```
And then, select `Multilingual.Animan`, complementations are blow:
-```
+```swift
Multilingual.Animal.CAT
Multilingual.Animal.DOG
Multilingual.Animal.BEAR
Multilingual.Animal.DEER
```
Awesome!
And print localized string is:
-```
+```swift
Multilingual.Animal.DOG.string()
```
Easy!
@@ -149,16 +151,16 @@
Example:
When you want to use Animal table's DOG key localization.
-```
+```swift
Multilingual.Animal.DOG.string() // Dog
```
When you want to show every localizations in test.
-```
+```swift
Multilingual.Animal.localizations() // ["Cat", "Dog", "Bear", "Dear"]
```
## Contributing