Skip to content

add locale support #26

Description

@codekidX

adding locale support is a tedious task by hand but rubik has its own config management system to leverage from.

idea is:

  • config/locale/{langabbr}.toml can be the language specific configutaration used.
  • language struct declaration can be inside config/lang.go
  • headers to pick up from can be lang
  • default language can be set from config using lang top level field
  • and a new type of transport key called locale can be introduced to inject language specific configurations

Code:

type MyEntity struct {
  Locale LocaleConfig `rubik:"|locale"`
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestrubik-serverissues related to rubik server app

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions