This is an automated email from the ASF dual-hosted git repository.

msciabarra pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/openserverless-cli.git

commit 6a2a303dc0bf3182a429f4634be1302c02e4fd97
Author: Michele Sciabarra <[email protected]>
AuthorDate: Thu Jul 18 21:26:43 2024 +0200

    resources
---
 patches/i18n_resources.go | 215 ++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 215 insertions(+)

diff --git a/patches/i18n_resources.go b/patches/i18n_resources.go
new file mode 100644
index 0000000..21a14e3
--- /dev/null
+++ b/patches/i18n_resources.go
@@ -0,0 +1,215 @@
+package wski18n
+
+import (
+       "bytes"
+       "compress/gzip"
+       "fmt"
+       "io"
+       "strings"
+)
+
+func bindata_read(data []byte, name string) ([]byte, error) {
+       gz, err := gzip.NewReader(bytes.NewBuffer(data))
+       if err != nil {
+               return nil, fmt.Errorf("Read %q: %v", name, err)
+       }
+
+       var buf bytes.Buffer
+       _, err = io.Copy(&buf, gz)
+       gz.Close()
+
+       if err != nil {
+               return nil, fmt.Errorf("Read %q: %v", name, err)
+       }
+
+       return buf.Bytes(), nil
+}
+
+var _wski18n_resources_de_de_all_json = 
[]byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x01\x00\x00\xff\xff\x00\x00\x00\x00\x00\x00\x00\x00")
+
+func wski18n_resources_de_de_all_json() ([]byte, error) {
+       return bindata_read(
+               _wski18n_resources_de_de_all_json,
+               "wski18n/resources/de_DE.all.json",
+       )
+}
+
+var _wski18n_resources_en_us_all_json = 
[]byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xd4\x7d\x5f\x73\x1b\x37\xb2\xef\x7b\x3e\x45\x97\x6b\xab\xe4\xdc\x22\xe5\xdd\xfb\x72\xeb\x3a\x27\xa7\x4a\x91\x98\x58\x89\x2d\xa9\x24\x39\xbb\xae\xd5\x96\x09\x72\x40\x11\xd1\x10\x98\x00\x18\xd1\xb4\x57\xdf\xfd\x14\xfe\xcc\x70\x86\xc4\xbf\x99\xa1\xec\x3d\x4f\x96\x87\xdd\xbf\x6e\x00\x0d\xa0\xd1\x68\x00\xff\xfc\x0e\xe0\xcb\x77\x00\x00\x2f\x48\xf6\xe2\x35\xbc\x38\x29\x8a\x9c\xcc\x91\x24\x8c\x02\xfe\x44\x24
 [...]
+
+func wski18n_resources_en_us_all_json() ([]byte, error) {
+       return bindata_read(
+               _wski18n_resources_en_us_all_json,
+               "wski18n/resources/en_US.all.json",
+       )
+}
+
+var _wski18n_resources_es_es_all_json = 
[]byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x01\x00\x00\xff\xff\x00\x00\x00\x00\x00\x00\x00\x00")
+
+func wski18n_resources_es_es_all_json() ([]byte, error) {
+       return bindata_read(
+               _wski18n_resources_es_es_all_json,
+               "wski18n/resources/es_ES.all.json",
+       )
+}
+
+var _wski18n_resources_fr_fr_all_json = 
[]byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x8a\xe6\x52\x50\xa8\xe6\x52\x50\x50\x50\x50\xca\x4c\x51\xb2\x52\x50\x4a\xaa\x2c\x48\x2c\x2e\x56\x48\x4e\x2d\x2a\xc9\x4c\xcb\x4c\x4e\x2c\x49\x55\x48\xce\x48\x4d\xce\xce\xcc\x4b\x57\xd2\x81\x28\x2c\x29\x4a\xcc\x2b\xce\x49\x2c\xc9\xcc\xcf\x03\xe9\x08\xce\xcf\x4d\x55\x40\x12\x53\xc8\xcc\x53\x70\x2b\x4a\xcd\x4b\xce\x50\xe2\x52\x50\xa8\xe5\x8a\xe5\x02\x04\x00\x00\xff\xff\x45\xa4\xe9\x62\x65\x00\x00\x00")
+
+func wski18n_resources_fr_fr_all_json() ([]byte, error) {
+       return bindata_read(
+               _wski18n_resources_fr_fr_all_json,
+               "wski18n/resources/fr_FR.all.json",
+       )
+}
+
+var _wski18n_resources_it_it_all_json = 
[]byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x01\x00\x00\xff\xff\x00\x00\x00\x00\x00\x00\x00\x00")
+
+func wski18n_resources_it_it_all_json() ([]byte, error) {
+       return bindata_read(
+               _wski18n_resources_it_it_all_json,
+               "wski18n/resources/it_IT.all.json",
+       )
+}
+
+var _wski18n_resources_ja_ja_all_json = 
[]byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x01\x00\x00\xff\xff\x00\x00\x00\x00\x00\x00\x00\x00")
+
+func wski18n_resources_ja_ja_all_json() ([]byte, error) {
+       return bindata_read(
+               _wski18n_resources_ja_ja_all_json,
+               "wski18n/resources/ja_JA.all.json",
+       )
+}
+
+var _wski18n_resources_ko_kr_all_json = 
[]byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x01\x00\x00\xff\xff\x00\x00\x00\x00\x00\x00\x00\x00")
+
+func wski18n_resources_ko_kr_all_json() ([]byte, error) {
+       return bindata_read(
+               _wski18n_resources_ko_kr_all_json,
+               "wski18n/resources/ko_KR.all.json",
+       )
+}
+
+var _wski18n_resources_pt_br_all_json = 
[]byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x01\x00\x00\xff\xff\x00\x00\x00\x00\x00\x00\x00\x00")
+
+func wski18n_resources_pt_br_all_json() ([]byte, error) {
+       return bindata_read(
+               _wski18n_resources_pt_br_all_json,
+               "wski18n/resources/pt_BR.all.json",
+       )
+}
+
+var _wski18n_resources_zh_hans_all_json = 
[]byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x01\x00\x00\xff\xff\x00\x00\x00\x00\x00\x00\x00\x00")
+
+func wski18n_resources_zh_hans_all_json() ([]byte, error) {
+       return bindata_read(
+               _wski18n_resources_zh_hans_all_json,
+               "wski18n/resources/zh_Hans.all.json",
+       )
+}
+
+var _wski18n_resources_zh_hant_all_json = 
[]byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x01\x00\x00\xff\xff\x00\x00\x00\x00\x00\x00\x00\x00")
+
+func wski18n_resources_zh_hant_all_json() ([]byte, error) {
+       return bindata_read(
+               _wski18n_resources_zh_hant_all_json,
+               "wski18n/resources/zh_Hant.all.json",
+       )
+}
+
+// Asset loads and returns the asset for the given name.
+// It returns an error if the asset could not be found or
+// could not be loaded.
+func Asset(name string) ([]byte, error) {
+       cannonicalName := strings.Replace(name, "\\", "/", -1)
+       if f, ok := _bindata[cannonicalName]; ok {
+               return f()
+       }
+       return nil, fmt.Errorf("Asset %s not found", name)
+}
+
+// AssetNames returns the names of the assets.
+func AssetNames() []string {
+       names := make([]string, 0, len(_bindata))
+       for name := range _bindata {
+               names = append(names, name)
+       }
+       return names
+}
+
+// _bindata is a table, holding each asset generator, mapped to its name.
+var _bindata = map[string]func() ([]byte, error){
+       "wski18n/resources/de_DE.all.json": wski18n_resources_de_de_all_json,
+       "wski18n/resources/en_US.all.json": wski18n_resources_en_us_all_json,
+       "wski18n/resources/es_ES.all.json": wski18n_resources_es_es_all_json,
+       "wski18n/resources/fr_FR.all.json": wski18n_resources_fr_fr_all_json,
+       "wski18n/resources/it_IT.all.json": wski18n_resources_it_it_all_json,
+       "wski18n/resources/ja_JA.all.json": wski18n_resources_ja_ja_all_json,
+       "wski18n/resources/ko_KR.all.json": wski18n_resources_ko_kr_all_json,
+       "wski18n/resources/pt_BR.all.json": wski18n_resources_pt_br_all_json,
+       "wski18n/resources/zh_Hans.all.json": 
wski18n_resources_zh_hans_all_json,
+       "wski18n/resources/zh_Hant.all.json": 
wski18n_resources_zh_hant_all_json,
+}
+// AssetDir returns the file names below a certain
+// directory embedded in the file by go-bindata.
+// For example if you run go-bindata on data/... and data contains the
+// following hierarchy:
+//     data/
+//       foo.txt
+//       img/
+//         a.png
+//         b.png
+// then AssetDir("data") would return []string{"foo.txt", "img"}
+// AssetDir("data/img") would return []string{"a.png", "b.png"}
+// AssetDir("foo.txt") and AssetDir("notexist") would return an error
+// AssetDir("") will return []string{"data"}.
+func AssetDir(name string) ([]string, error) {
+       node := _bintree
+       if len(name) != 0 {
+               cannonicalName := strings.Replace(name, "\\", "/", -1)
+               pathList := strings.Split(cannonicalName, "/")
+               for _, p := range pathList {
+                       node = node.Children[p]
+                       if node == nil {
+                               return nil, fmt.Errorf("Asset %s not found", 
name)
+                       }
+               }
+       }
+       if node.Func != nil {
+               return nil, fmt.Errorf("Asset %s not found", name)
+       }
+       rv := make([]string, 0, len(node.Children))
+       for name := range node.Children {
+               rv = append(rv, name)
+       }
+       return rv, nil
+}
+
+type _bintree_t struct {
+       Func func() ([]byte, error)
+       Children map[string]*_bintree_t
+}
+var _bintree = &_bintree_t{nil, map[string]*_bintree_t{
+       "wski18n": &_bintree_t{nil, map[string]*_bintree_t{
+               "resources": &_bintree_t{nil, map[string]*_bintree_t{
+                       "de_DE.all.json": 
&_bintree_t{wski18n_resources_de_de_all_json, map[string]*_bintree_t{
+                       }},
+                       "en_US.all.json": 
&_bintree_t{wski18n_resources_en_us_all_json, map[string]*_bintree_t{
+                       }},
+                       "es_ES.all.json": 
&_bintree_t{wski18n_resources_es_es_all_json, map[string]*_bintree_t{
+                       }},
+                       "fr_FR.all.json": 
&_bintree_t{wski18n_resources_fr_fr_all_json, map[string]*_bintree_t{
+                       }},
+                       "it_IT.all.json": 
&_bintree_t{wski18n_resources_it_it_all_json, map[string]*_bintree_t{
+                       }},
+                       "ja_JA.all.json": 
&_bintree_t{wski18n_resources_ja_ja_all_json, map[string]*_bintree_t{
+                       }},
+                       "ko_KR.all.json": 
&_bintree_t{wski18n_resources_ko_kr_all_json, map[string]*_bintree_t{
+                       }},
+                       "pt_BR.all.json": 
&_bintree_t{wski18n_resources_pt_br_all_json, map[string]*_bintree_t{
+                       }},
+                       "zh_Hans.all.json": 
&_bintree_t{wski18n_resources_zh_hans_all_json, map[string]*_bintree_t{
+                       }},
+                       "zh_Hant.all.json": 
&_bintree_t{wski18n_resources_zh_hant_all_json, map[string]*_bintree_t{
+                       }},
+               }},
+       }},
+}}

Reply via email to