Skip to content

hyperscale-stack/locale

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Feb 26, 2025
3c1a607 · Feb 26, 2025

History

55 Commits
Feb 26, 2025
Feb 24, 2022
Feb 24, 2022
Nov 28, 2024
Feb 24, 2022
Feb 24, 2022
Feb 24, 2022
Feb 24, 2022
Feb 24, 2022
Feb 24, 2022
Feb 10, 2025
Feb 10, 2025

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.