@operato/input 10.29.22 → 10.29.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/dist/src/locale/locale-codes.d.ts +2 -2
- package/dist/src/locale/locale-codes.js +2 -2
- package/dist/src/locale/locale-codes.js.map +1 -1
- package/dist/src/locale/locale-picker.js +1 -0
- package/dist/src/locale/locale-picker.js.map +1 -1
- package/dist/src/locales/es.d.ts +19 -0
- package/dist/src/locales/es.js +24 -0
- package/dist/src/locales/es.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/lit-localize.json +1 -0
- package/package.json +6 -6
- package/translations/es.json +58 -0
- package/xliff/es.xlf +75 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,15 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
### [10.29.23](https://github.com/hatiolab/operato/compare/v10.29.22...v10.29.23) (2026-10-10)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### :rocket: New Features
|
|
10
|
+
|
|
11
|
+
* **i18n:** add Spanish (es) translations to the web components ([e9e7b93](https://github.com/hatiolab/operato/commit/e9e7b932b7e51a9b52838dd5cc7293d6db4ec7fe))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
6
15
|
### [10.29.22](https://github.com/hatiolab/operato/compare/v10.29.21...v10.29.22) (2026-10-10)
|
|
7
16
|
|
|
8
17
|
**Note:** Version bump only for package @operato/input
|
|
@@ -6,8 +6,8 @@ export declare const sourceLocale = "en";
|
|
|
6
6
|
* The other locale codes that this application is localized into. Sorted
|
|
7
7
|
* lexicographically.
|
|
8
8
|
*/
|
|
9
|
-
export declare const targetLocales: readonly ["ja", "ko", "ms", "zh"];
|
|
9
|
+
export declare const targetLocales: readonly ["es", "ja", "ko", "ms", "zh"];
|
|
10
10
|
/**
|
|
11
11
|
* All valid project locale codes. Sorted lexicographically.
|
|
12
12
|
*/
|
|
13
|
-
export declare const allLocales: readonly ["en", "ja", "ko", "ms", "zh"];
|
|
13
|
+
export declare const allLocales: readonly ["en", "es", "ja", "ko", "ms", "zh"];
|
|
@@ -12,9 +12,9 @@ export const sourceLocale = `en`;
|
|
|
12
12
|
* The other locale codes that this application is localized into. Sorted
|
|
13
13
|
* lexicographically.
|
|
14
14
|
*/
|
|
15
|
-
export const targetLocales = [`ja`, `ko`, `ms`, `zh`];
|
|
15
|
+
export const targetLocales = [`es`, `ja`, `ko`, `ms`, `zh`];
|
|
16
16
|
/**
|
|
17
17
|
* All valid project locale codes. Sorted lexicographically.
|
|
18
18
|
*/
|
|
19
|
-
export const allLocales = [`en`, `ja`, `ko`, `ms`, `zh`];
|
|
19
|
+
export const allLocales = [`en`, `es`, `ja`, `ko`, `ms`, `zh`];
|
|
20
20
|
//# sourceMappingURL=locale-codes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"locale-codes.js","sourceRoot":"","sources":["../../../src/locale/locale-codes.ts"],"names":[],"mappings":"AAAA,mCAAmC;AACnC,iDAAiD;AACjD,EAAE;AACF,6EAA6E;AAC7E,yEAAyE;AACzE,uDAAuD;AAEvD;;GAEG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,CAAA;AAEhC;;;GAGG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"locale-codes.js","sourceRoot":"","sources":["../../../src/locale/locale-codes.ts"],"names":[],"mappings":"AAAA,mCAAmC;AACnC,iDAAiD;AACjD,EAAE;AACF,6EAA6E;AAC7E,yEAAyE;AACzE,uDAAuD;AAEvD;;GAEG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,CAAA;AAEhC;;;GAGG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAU,CAAA;AAEpE;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAU,CAAA","sourcesContent":["// Do not modify this file by hand!\n// Re-generate this file by running lit-localize.\n//\n// 주의: `lit-localize.json` 에 `output.localeCodesModule` 이 없어서, 지금은 이 파일이 자동으로\n// 다시 만들어지지 않는다. 언어를 늘리면 `lit-localize.json` 의 targetLocales 와 여기를 함께 고쳐야\n// 한다. 한쪽만 고치면 번들은 생기는데 아무도 그 언어를 고를 수 없다(ja 가 그 상태였다).\n\n/**\n * The locale code that templates in this source code are written in.\n */\nexport const sourceLocale = `en`\n\n/**\n * The other locale codes that this application is localized into. Sorted\n * lexicographically.\n */\nexport const targetLocales = [`es`, `ja`, `ko`, `ms`, `zh`] as const\n\n/**\n * All valid project locale codes. Sorted lexicographically.\n */\nexport const allLocales = [`en`, `es`, `ja`, `ko`, `ms`, `zh`] as const\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"locale-picker.js","sourceRoot":"","sources":["../../../src/locale/locale-picker.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAA;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAEjD,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAEzC,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAC9C,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AAE/D,MAAM,WAAW,GAEb;IACF,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,KAAK;IACT,EAAE,EAAE,KAAK;IACT,EAAE,EAAE,eAAe;IACnB,EAAE,EAAE,SAAS;CACd,CAAA;AAED,gFAAgF;AAChF,8EAA8E;AAC9E,sBAAsB;AAGf,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,UAAU;IAC1C,MAAM;QACJ,OAAO,IAAI,CAAA;wBACS,IAAI,CAAC,aAAa;UAChC,UAAU,CAAC,GAAG,CACd,MAAM,CAAC,EAAE,CAAC,IAAI,CAAA,iBAAiB,MAAM,cAAc,MAAM,KAAK,SAAS,EAAE,IAAI,WAAW,CAAC,MAAM,CAAC,WAAW,CAC5G;;KAEJ,CAAA;IACH,CAAC;IAED,aAAa,CAAC,KAAY;QACxB,MAAM,SAAS,GAAI,KAAK,CAAC,MAA4B,CAAC,KAAK,CAAA;QAC3D,IAAI,SAAS,KAAK,SAAS,EAAE,EAAE,CAAC;YAC9B,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAA;YACzC,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAA;YACzC,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,EAAE,EAAE,EAAE,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAA;YAClD,gBAAgB,EAAE,CAAA;QACpB,CAAC;IACH,CAAC;CACF,CAAA;AApBY,YAAY;IAFxB,SAAS,EAAE;IACX,aAAa,CAAC,eAAe,CAAC;GAClB,YAAY,CAoBxB","sourcesContent":["import { html, LitElement } from 'lit'\nimport { customElement } from 'lit/decorators.js'\n\nimport { localized } from '@lit/localize'\n\nimport { allLocales } from './locale-codes.js'\nimport { getLocale, setLocaleFromUrl } from './localization.js'\n\nconst localeNames: {\n [L in typeof allLocales[number]]: string\n} = {\n en: 'English',\n ja: '日本語',\n ko: '한국어',\n ms: 'Bahasa Melayu',\n zh: '中文 (简体)'\n}\n\n// Note we use updateWhenLocaleChanges here so that we're always up to date with\n// the active locale (the result of getLocale()) when the locale changes via a\n// history navigation.\n@localized()\n@customElement('locale-picker')\nexport class LocalePicker extends LitElement {\n render() {\n return html`\n <select @change=${this.localeChanged}>\n ${allLocales.map(\n locale => html`<option value=${locale} ?selected=${locale === getLocale()}>${localeNames[locale]}</option>`\n )}\n </select>\n `\n }\n\n localeChanged(event: Event) {\n const newLocale = (event.target as HTMLSelectElement).value\n if (newLocale !== getLocale()) {\n const url = new URL(window.location.href)\n url.searchParams.set('locale', newLocale)\n window.history.pushState(null, '', url.toString())\n setLocaleFromUrl()\n }\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"locale-picker.js","sourceRoot":"","sources":["../../../src/locale/locale-picker.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAA;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAEjD,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAEzC,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAC9C,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AAE/D,MAAM,WAAW,GAEb;IACF,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,KAAK;IACT,EAAE,EAAE,KAAK;IACT,EAAE,EAAE,eAAe;IACnB,EAAE,EAAE,SAAS;CACd,CAAA;AAED,gFAAgF;AAChF,8EAA8E;AAC9E,sBAAsB;AAGf,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,UAAU;IAC1C,MAAM;QACJ,OAAO,IAAI,CAAA;wBACS,IAAI,CAAC,aAAa;UAChC,UAAU,CAAC,GAAG,CACd,MAAM,CAAC,EAAE,CAAC,IAAI,CAAA,iBAAiB,MAAM,cAAc,MAAM,KAAK,SAAS,EAAE,IAAI,WAAW,CAAC,MAAM,CAAC,WAAW,CAC5G;;KAEJ,CAAA;IACH,CAAC;IAED,aAAa,CAAC,KAAY;QACxB,MAAM,SAAS,GAAI,KAAK,CAAC,MAA4B,CAAC,KAAK,CAAA;QAC3D,IAAI,SAAS,KAAK,SAAS,EAAE,EAAE,CAAC;YAC9B,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAA;YACzC,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAA;YACzC,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,EAAE,EAAE,EAAE,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAA;YAClD,gBAAgB,EAAE,CAAA;QACpB,CAAC;IACH,CAAC;CACF,CAAA;AApBY,YAAY;IAFxB,SAAS,EAAE;IACX,aAAa,CAAC,eAAe,CAAC;GAClB,YAAY,CAoBxB","sourcesContent":["import { html, LitElement } from 'lit'\nimport { customElement } from 'lit/decorators.js'\n\nimport { localized } from '@lit/localize'\n\nimport { allLocales } from './locale-codes.js'\nimport { getLocale, setLocaleFromUrl } from './localization.js'\n\nconst localeNames: {\n [L in typeof allLocales[number]]: string\n} = {\n en: 'English',\n es: 'Español',\n ja: '日本語',\n ko: '한국어',\n ms: 'Bahasa Melayu',\n zh: '中文 (简体)'\n}\n\n// Note we use updateWhenLocaleChanges here so that we're always up to date with\n// the active locale (the result of getLocale()) when the locale changes via a\n// history navigation.\n@localized()\n@customElement('locale-picker')\nexport class LocalePicker extends LitElement {\n render() {\n return html`\n <select @change=${this.localeChanged}>\n ${allLocales.map(\n locale => html`<option value=${locale} ?selected=${locale === getLocale()}>${localeNames[locale]}</option>`\n )}\n </select>\n `\n }\n\n localeChanged(event: Event) {\n const newLocale = (event.target as HTMLSelectElement).value\n if (newLocale !== getLocale()) {\n const url = new URL(window.location.href)\n url.searchParams.set('locale', newLocale)\n window.history.pushState(null, '', url.toString())\n setLocaleFromUrl()\n }\n }\n}\n"]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const templates: {
|
|
2
|
+
s075cb2f53173bd8a: string;
|
|
3
|
+
s29ec9210c8a8222e: string;
|
|
4
|
+
s31be7a0b4a5853dd: string;
|
|
5
|
+
s42670fc325584e15: string;
|
|
6
|
+
s4cbf3a26fca1d74a: string;
|
|
7
|
+
s5191b91c637d7da1: string;
|
|
8
|
+
s63c6e58ec805a9eb: string;
|
|
9
|
+
s685db98545dc9448: string;
|
|
10
|
+
s6aacb9fbb71a1d91: string;
|
|
11
|
+
s77c8560cf63a372d: string;
|
|
12
|
+
s9f41d726ecec72c2: string;
|
|
13
|
+
sb9874d345b5e590a: string;
|
|
14
|
+
sc4bcadba8e631b86: string;
|
|
15
|
+
scff69aa7239287b0: string;
|
|
16
|
+
sd793f87f18747a63: string;
|
|
17
|
+
sf9b52aece5aed0f7: string;
|
|
18
|
+
sfcc01216c601ec9e: string;
|
|
19
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// Do not modify this file by hand!
|
|
2
|
+
// Re-generate this file by running lit-localize
|
|
3
|
+
/* eslint-disable no-irregular-whitespace */
|
|
4
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
5
|
+
export const templates = {
|
|
6
|
+
's075cb2f53173bd8a': `rotar`,
|
|
7
|
+
's29ec9210c8a8222e': `El día`,
|
|
8
|
+
's31be7a0b4a5853dd': `eje z`,
|
|
9
|
+
's42670fc325584e15': `El día anterior`,
|
|
10
|
+
's4cbf3a26fca1d74a': `posición`,
|
|
11
|
+
's5191b91c637d7da1': `no se permiten caracteres especiales`,
|
|
12
|
+
's63c6e58ec805a9eb': `fecha inicial`,
|
|
13
|
+
's685db98545dc9448': `fecha final`,
|
|
14
|
+
's6aacb9fbb71a1d91': `escala`,
|
|
15
|
+
's77c8560cf63a372d': `hora final`,
|
|
16
|
+
's9f41d726ecec72c2': `eje y`,
|
|
17
|
+
'sb9874d345b5e590a': `etiqueta duplicada`,
|
|
18
|
+
'sc4bcadba8e631b86': `nombre`,
|
|
19
|
+
'scff69aa7239287b0': `El día siguiente`,
|
|
20
|
+
'sd793f87f18747a63': `dimensión`,
|
|
21
|
+
'sf9b52aece5aed0f7': `eje x`,
|
|
22
|
+
'sfcc01216c601ec9e': `hora inicial`,
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"es.js","sourceRoot":"","sources":["../../../src/locales/es.ts"],"names":[],"mappings":"AACI,mCAAmC;AACnC,gDAAgD;AAKhD,4CAA4C;AAC5C,uDAAuD;AAEvD,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,mBAAmB,EAAE,OAAO;IAClC,mBAAmB,EAAE,QAAQ;IAC7B,mBAAmB,EAAE,OAAO;IAC5B,mBAAmB,EAAE,iBAAiB;IACtC,mBAAmB,EAAE,UAAU;IAC/B,mBAAmB,EAAE,sCAAsC;IAC3D,mBAAmB,EAAE,eAAe;IACpC,mBAAmB,EAAE,aAAa;IAClC,mBAAmB,EAAE,QAAQ;IAC7B,mBAAmB,EAAE,YAAY;IACjC,mBAAmB,EAAE,OAAO;IAC5B,mBAAmB,EAAE,oBAAoB;IACzC,mBAAmB,EAAE,QAAQ;IAC7B,mBAAmB,EAAE,kBAAkB;IACvC,mBAAmB,EAAE,WAAW;IAChC,mBAAmB,EAAE,OAAO;IAC5B,mBAAmB,EAAE,cAAc;CAC9B,CAAC","sourcesContent":["\n // Do not modify this file by hand!\n // Re-generate this file by running lit-localize\n\n \n \n\n /* eslint-disable no-irregular-whitespace */\n /* eslint-disable @typescript-eslint/no-explicit-any */\n\n export const templates = {\n 's075cb2f53173bd8a': `rotar`,\n's29ec9210c8a8222e': `El día`,\n's31be7a0b4a5853dd': `eje z`,\n's42670fc325584e15': `El día anterior`,\n's4cbf3a26fca1d74a': `posición`,\n's5191b91c637d7da1': `no se permiten caracteres especiales`,\n's63c6e58ec805a9eb': `fecha inicial`,\n's685db98545dc9448': `fecha final`,\n's6aacb9fbb71a1d91': `escala`,\n's77c8560cf63a372d': `hora final`,\n's9f41d726ecec72c2': `eje y`,\n'sb9874d345b5e590a': `etiqueta duplicada`,\n'sc4bcadba8e631b86': `nombre`,\n'scff69aa7239287b0': `El día siguiente`,\n'sd793f87f18747a63': `dimensión`,\n'sf9b52aece5aed0f7': `eje x`,\n'sfcc01216c601ec9e': `hora inicial`,\n };\n "]}
|