Internationalizes your Vapor's HTTP requests

InternationalizedVapor

Internationalizes your Vapor’s HTTP requests by wrapping Unciode’s ICU4C.

ICU4C’s wrapper which provides Foundation-free Locale stands as a separate library.

Usage example

app.get("hello") { req in 
    let locale = try req.locale 
    return response
}

Locale negotiation examples can be found here.

Installation

Swift Package Manager

Use Swift Package Manager by adding below dependency to your Package.swift file:

.package(url: "https://github.com/kkiermasz/InternationalizedVapor.git", from: "1.1.0")

License

InternationalizedVapor is shared under the MIT license. See both LICENSE and ICU4C’s License for more info.

GitHub

View Github