Blame internal/osbuild1/locale_stage.go
|
Packit Service |
15f37d |
package osbuild1
|
|
Packit Service |
15f37d |
|
|
Packit Service |
15f37d |
// The LocaleStageOptions describes the image's locale.
|
|
Packit Service |
15f37d |
//
|
|
Packit Service |
15f37d |
// A locale is typically specified as language_[territory], where language
|
|
Packit Service |
15f37d |
// is specified in ISO 639 and territory in ISO 3166.
|
|
Packit Service |
15f37d |
type LocaleStageOptions struct {
|
|
Packit Service |
15f37d |
Language string `json:"language"`
|
|
Packit Service |
15f37d |
}
|
|
Packit Service |
15f37d |
|
|
Packit Service |
15f37d |
func (LocaleStageOptions) isStageOptions() {}
|
|
Packit Service |
15f37d |
|
|
Packit Service |
15f37d |
// NewLocaleStage creates a new Locale Stage object.
|
|
Packit Service |
15f37d |
func NewLocaleStage(options *LocaleStageOptions) *Stage {
|
|
Packit Service |
15f37d |
return &Stage{
|
|
Packit Service |
15f37d |
Name: "org.osbuild.locale",
|
|
Packit Service |
15f37d |
Options: options,
|
|
Packit Service |
15f37d |
}
|
|
Packit Service |
15f37d |
}
|