Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/izniburak/turkish-number
turn integers into the Turkish words for Crystal Language
https://github.com/izniburak/turkish-number
crystal number-to-words numbers turkish-language
Last synced: about 1 month ago
JSON representation
turn integers into the Turkish words for Crystal Language
- Host: GitHub
- URL: https://github.com/izniburak/turkish-number
- Owner: izniburak
- License: mit
- Created: 2017-02-08T17:21:30.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-11T16:28:05.000Z (almost 8 years ago)
- Last Synced: 2024-08-01T17:33:05.899Z (4 months ago)
- Topics: crystal, number-to-words, numbers, turkish-language
- Language: Crystal
- Size: 4.88 KB
- Stars: 8
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-crystal - turkish-number - Turn integers into the Turkish words (Converters)
- awesome-crystal - turkish-number - Turn integers into the Turkish words (Converters)
README
# turkish-number
```
_ _ _ _ _
| | | | (_) | | | |
| |_ _ _ _ __| | ___ ___| |__ ______ _ __ _ _ _ __ ___ | |__ ___ _ __
| __| | | | '__| |/ / / __| '_ \______| '_ \| | | | '_ ` _ \| '_ \ / _ \ '__|
| |_| |_| | | | <| \__ \ | | | | | | | |_| | | | | | | |_) | __/ |
\__|\__,_|_| |_|\_\_|___/_| |_| |_| |_|\__,_|_| |_| |_|_.__/ \___|_|
```
[![Build Status](https://travis-ci.org/izniburak/turkish-number.svg?branch=master)](https://travis-ci.org/izniburak/turkish-number)turn integers into the Turkish words for Crystal Language
adapted from [hynkle/turkish_number](https://github.com/hynkle/turkish_number) Ruby Gems.
it has been reorganized and improved for Crystal.
## features
- turn integers into the Turkish words (including negative numbers)
- only Int32 data type support (for now)
- Number range: -2147483648 / 2147483647 ([Int32 - Crystal API](https://crystal-lang.org/api/))## installation
add this to your application's `shard.yml`:
```yaml
dependencies:
turkish-number:
github: izniburak/turkish-number
```## Usage
```crystal
require "turkish-number"puts 1881.tr_words # bin sekiz yüz seksen bir
puts 1938.tr_words # bin dokuz yüz otuz sekizputs 75986346.tr_words # yetmiş beş milyon dokuz yüz seksen altı bin üç yüz kırk altı
puts -102574.tr_words # eksi yüz iki bin beş yüz yetmiş dört# bla bla bla ...
```## Contributing
1. fork it ( https://github.com/izniburak/turkish-number/fork )
2. create your feature branch (git checkout -b my-new-feature)
3. commit your changes (git commit -am 'Add some feature')
4. push to the branch (git push origin my-new-feature)
5. create a new Pull Request## Contributors
- [izniburak](https://github.com/izniburak) İzni Burak Demirtaş - creator, maintainer