cadmium_transliterator
Version, currently master branch1 version
- master branchlatestJan 9, 2026
github.com/cadmiumcr/transliterator
No description declared in shard.yml.
7 stars
4 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
cadmium_transliterator:
github: cadmiumcr/transliterator
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
>= 0.34.0, < 2.0.0- License
- MIT
- Author
- Chris Watson
Dependencies
This version declares no dependencies.
README
Transliterator
The Transliterator module provides the ability to transliterate UTF-8 strings into pure ASCII so that they can be safely displayed in URL slugs or file names.
Installation
-
Add the dependency to your
shard.yml:dependencies: cadmium_transliterator: github: cadmiumcr/transliterator -
Run
shards install
Usage
require "cadmium_transliterator"
transliterator = Cadmium.transliterator
transliterator.transliterate("Привет")
# => "Privet"
transliterator.transliterate("你好朋友")
# => "Ni Hao Peng You"
# With the string extension
"މިއަދަކީ ހދ ރީތި ދވހކވ".transliterate
# => "mi'adhakee hdh reethi dhvhkv"
"こんにちは、友人".transliterate
# => konnichiwa, You Ren
Contributing
- Fork it (https://github.com/cadmiumcr/transliterator/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Contributors
- Chris Watson - creator and maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
master- Seen
- Jan 9, 2026
- Crystal
>= 0.34.0, < 2.0.0- Indexed
- yes
Dependents
Repository
github.com/cadmiumcr/transliterator
Metadata
- Created
- Aug 12, 2026
- Updated
- Sep 24, 2026
- Synced
- Sep 24, 2026
- Versions
- 1