Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Decybel07 authored May 14, 2017
1 parent 611288f commit f5c06e3
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,16 @@ github "Decybel07/L10n-swift", ~> 2.0
import L10n
```

### Get translated text
### Get localized text

Add `.l10()` following any `String` object you want translated:
Add `.l10()` following any `String` object you want localized:
```swift
textLabel.text = "HelloWorld".l10n()
```

### Get localized number

Add `.l10()` following any `Int` or `Double` object you want localized using the number format for the current language:
```swift
textLabel.text = "HelloWorld".l10n()
```
Expand Down

0 comments on commit f5c06e3

Please sign in to comment.