GO library for transliteration. 🇺🇦 🇬🇧 🔡
You can test it with my Transliteration Telegram Bot.
- GO >= 1.20
From | To | Rules |
---|---|---|
Ukrainian | Latin | Resolution of the Cabinet of Ministers of Ukraine №55 dated January 27, 2010 https://zakon.rada.gov.ua/laws/show/55-2010-%D0%BF#Text |
package main
import (
"fmt"
"os"
"strings"
"github.com/fre5h/transliteration-go"
)
func main() {
inputString := strings.Join(os.Args[1:], " ")
transliteratedString := transliteration.UkrToLat(inputString)
fmt.Println("transliterated text: ", transliteratedString)
}
$ go get "github.com/fre5h/transliteration-go"@v1.2.0
go: downloading github.com/fre5h/transliteration-go v1.2.0
go: added github.com/fre5h/transliteration-go v1.2.0
$ go run main.go Слава Україні!
transliterated text: Slava Ukraini!
Ukrainian text | Transliterated text |
---|---|
Володимир | Volodymyr |
Богдан | Bohdan |
Жанна | Zhanna |
Наталія | Nataliia |
Олексій | Oleksii |
Уляна | Uliana |
Юрій | Yurii |
See CONTRIBUTING file.