Skip to content

hyperscale-stack/locale

Repository files navigation

Hyperscale Locale Last release Documentation

Go Report Card

Branch Status Coverage
master Build Status Coveralls

The Hyperscale locale library provides a simple locale manager

Example

package main

import (
    "fmt"

    "github.com/hyperscale-stack/locale"
)

func main() {
    ctx := context.Background()

    ctx = locale.ToContext(ctx, language.French)

    tag := locale.FromContext(ctx) // return language.French or locale.DefaultLocale if
}

License

Hyperscale Locale is licensed under the MIT license.