Skip to content

Commit

Permalink
Add support for locale formats based on ISO 639-2/3 languages and UN-…
Browse files Browse the repository at this point in the history
…M49 regions
  • Loading branch information
lzoran committed Aug 8, 2023
1 parent d5063a3 commit 9265a9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ func scanFileType(fileType *string) error {
}

func scanFiles(localizationFiles *[]LocalizationFile, section string) error {
localeCodeRegexp := regexp.MustCompile("^[a-z]{2}(-[A-Z][a-z]{3})?(-[A-Z]{2})?$")
localeCodeRegexp := regexp.MustCompile("^[a-z]{2,3}(-[A-Z][a-z]{3})?(-([A-Z]{2}|[0-9]{3}))?$")

var action string
if section == "pull" {
Expand Down
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import (
"gopkg.in/yaml.v3"
)

const Version = "1.0.3"
const Version = "1.0.4"

const LocalizelyDir = ".localizely"

Expand Down

0 comments on commit 9265a9e

Please sign in to comment.