@leancodepl/intl 9.6.2 → 9.6.5

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 CHANGED
@@ -3,6 +3,33 @@
3
3
  All notable changes to this project will be documented in this file. See
4
4
  [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [9.6.5](https://github.com/leancodepl/js_corelibrary/compare/v9.6.4...v9.6.5) (2025-10-16)
7
+
8
+ **Note:** Version bump only for package @leancodepl/intl
9
+
10
+ # Change Log
11
+
12
+ All notable changes to this project will be documented in this file. See
13
+ [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
14
+
15
+ ## [9.6.4](https://github.com/leancodepl/js_corelibrary/compare/v9.6.3...v9.6.4) (2025-10-16)
16
+
17
+ **Note:** Version bump only for package @leancodepl/intl
18
+
19
+ # Change Log
20
+
21
+ All notable changes to this project will be documented in this file. See
22
+ [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
23
+
24
+ ## [9.6.3](https://github.com/leancodepl/js_corelibrary/compare/v9.6.2...v9.6.3) (2025-09-22)
25
+
26
+ **Note:** Version bump only for package @leancodepl/intl
27
+
28
+ # Change Log
29
+
30
+ All notable changes to this project will be documented in this file. See
31
+ [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
32
+
6
33
  ## [9.6.2](https://github.com/leancodepl/js_corelibrary/compare/v9.6.1...v9.6.2) (2025-09-09)
7
34
 
8
35
  **Note:** Version bump only for package @leancodepl/intl
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leancodepl/intl",
3
- "version": "9.6.2",
3
+ "version": "9.6.5",
4
4
  "license": "Apache-2.0",
5
5
  "bin": {
6
6
  "intl": "src/bin.js"
@@ -16,9 +16,42 @@
16
16
  "devDependencies": {
17
17
  "@openapitools/openapi-generator-cli": "^2.15.0",
18
18
  "@types/lodash": "^4.17.20",
19
- "react": "^18.0.0",
19
+ "react": "*",
20
20
  "react-intl": "^6.0.0"
21
21
  },
22
+ "publishConfig": {
23
+ "access": "public",
24
+ "registry": "https://registry.npmjs.org/"
25
+ },
26
+ "engines": {
27
+ "node": ">=18.0.0"
28
+ },
29
+ "repository": {
30
+ "type": "git",
31
+ "url": "git+https://github.com/leancodepl/js_corelibrary.git",
32
+ "directory": "packages/intl"
33
+ },
34
+ "homepage": "https://github.com/leancodepl/js_corelibrary",
35
+ "bugs": {
36
+ "url": "https://github.com/leancodepl/js_corelibrary/issues"
37
+ },
38
+ "description": "A command-line tool for managing FormatJS translations with POEditor integration",
39
+ "keywords": [
40
+ "i18n",
41
+ "internationalization",
42
+ "formatjs",
43
+ "poeditor",
44
+ "translations",
45
+ "intl",
46
+ "react-intl",
47
+ "cli",
48
+ "typescript",
49
+ "leancode"
50
+ ],
51
+ "author": {
52
+ "name": "LeanCode",
53
+ "url": "https://leancode.co"
54
+ },
22
55
  "types": "./src/index.d.ts",
23
56
  "main": "./src/index.js",
24
57
  "type": "commonjs"
@@ -1347,7 +1347,7 @@ export declare class ContributorsApi extends BaseAPI {
1347
1347
  * @throws {RequiredError}
1348
1348
  * @memberof ContributorsApi
1349
1349
  */
1350
- contributorsAdd(id: string, name: string, email: string, apiToken?: string, language?: string, admin?: ContributorsAddAdminEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Response, any>>;
1350
+ contributorsAdd(id: string, name: string, email: string, apiToken?: string, language?: string, admin?: ContributorsAddAdminEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Response, any, {}>>;
1351
1351
  /**
1352
1352
  * Remove Contributor. More details in the [documentation](https://poeditor.com/docs/api#contributors_remove).
1353
1353
  * @summary Removes a contributor from a project language or an admin from a project, if the language is not specified.
@@ -1359,7 +1359,7 @@ export declare class ContributorsApi extends BaseAPI {
1359
1359
  * @throws {RequiredError}
1360
1360
  * @memberof ContributorsApi
1361
1361
  */
1362
- contributorsRemove(id: string, email: string, apiToken?: string, language?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Response, any>>;
1362
+ contributorsRemove(id: string, email: string, apiToken?: string, language?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Response, any, {}>>;
1363
1363
  /**
1364
1364
  * List Contributors. More details in the [documentation](https://poeditor.com/docs/api#contributors_list).
1365
1365
  * @summary Returns the list of contributors from your projects.
@@ -1370,7 +1370,7 @@ export declare class ContributorsApi extends BaseAPI {
1370
1370
  * @throws {RequiredError}
1371
1371
  * @memberof ContributorsApi
1372
1372
  */
1373
- translationsList(apiToken?: string, id?: string, language?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ContributorsListResponse, any>>;
1373
+ translationsList(apiToken?: string, id?: string, language?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ContributorsListResponse, any, {}>>;
1374
1374
  }
1375
1375
  /**
1376
1376
  * @export
@@ -1565,7 +1565,7 @@ export declare class LanguagesApi extends BaseAPI {
1565
1565
  * @throws {RequiredError}
1566
1566
  * @memberof LanguagesApi
1567
1567
  */
1568
- languagesAdd(id: number, language: string, apiToken?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Response, any>>;
1568
+ languagesAdd(id: number, language: string, apiToken?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Response, any, {}>>;
1569
1569
  /**
1570
1570
  * Delete Language from Project. More details in the [documentation](https://poeditor.com/docs/api#languages_delete).
1571
1571
  * @summary Deletes existing language from project.
@@ -1576,7 +1576,7 @@ export declare class LanguagesApi extends BaseAPI {
1576
1576
  * @throws {RequiredError}
1577
1577
  * @memberof LanguagesApi
1578
1578
  */
1579
- languagesDelete(id: number, language: string, apiToken?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Response, any>>;
1579
+ languagesDelete(id: number, language: string, apiToken?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Response, any, {}>>;
1580
1580
  /**
1581
1581
  * List Languages. More details in the [documentation](https://poeditor.com/docs/api#languages_list).
1582
1582
  * @summary Returns project languages, percentage of translation done for each and the datetime (UTC - ISO 8601) when the last change was made.
@@ -1586,7 +1586,7 @@ export declare class LanguagesApi extends BaseAPI {
1586
1586
  * @throws {RequiredError}
1587
1587
  * @memberof LanguagesApi
1588
1588
  */
1589
- languagesList(id: number, apiToken?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<LanguagesListLongResponse, any>>;
1589
+ languagesList(id: number, apiToken?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<LanguagesListLongResponse, any, {}>>;
1590
1590
  /**
1591
1591
  * Update Project Language. More details in the [documentation](https://poeditor.com/docs/api#languages_update).
1592
1592
  * @summary Inserts / overwrites translations.
@@ -1599,7 +1599,7 @@ export declare class LanguagesApi extends BaseAPI {
1599
1599
  * @throws {RequiredError}
1600
1600
  * @memberof LanguagesApi
1601
1601
  */
1602
- languagesUpdate(id: number, language: string, data: string, apiToken?: string, fuzzyTrigger?: LanguagesUpdateFuzzyTriggerEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TranslationsShortResponse, any>>;
1602
+ languagesUpdate(id: number, language: string, data: string, apiToken?: string, fuzzyTrigger?: LanguagesUpdateFuzzyTriggerEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TranslationsShortResponse, any, {}>>;
1603
1603
  /**
1604
1604
  * List Languages. More details in the [documentation](https://poeditor.com/docs/api#languages_available).
1605
1605
  * @summary Returns project languages, percentage of translation done for each and the datetime (UTC - ISO 8601) when the last change was made.
@@ -1609,7 +1609,7 @@ export declare class LanguagesApi extends BaseAPI {
1609
1609
  * @throws {RequiredError}
1610
1610
  * @memberof LanguagesApi
1611
1611
  */
1612
- projectsAvailable(id: number, apiToken?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<LanguagesListShortResponse, any>>;
1612
+ projectsAvailable(id: number, apiToken?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<LanguagesListShortResponse, any, {}>>;
1613
1613
  }
1614
1614
  /**
1615
1615
  * @export
@@ -1927,7 +1927,7 @@ export declare class ProjectsApi extends BaseAPI {
1927
1927
  * @throws {RequiredError}
1928
1928
  * @memberof ProjectsApi
1929
1929
  */
1930
- projectsAdd(name: string, apiToken?: string, description?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ProjectViewResponse, any>>;
1930
+ projectsAdd(name: string, apiToken?: string, description?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ProjectViewResponse, any, {}>>;
1931
1931
  /**
1932
1932
  * Delete Project. More details in the [documentation](https://poeditor.com/docs/api#projects_delete).
1933
1933
  * @summary Deletes the project from the account. You must be the owner of the project.
@@ -1937,7 +1937,7 @@ export declare class ProjectsApi extends BaseAPI {
1937
1937
  * @throws {RequiredError}
1938
1938
  * @memberof ProjectsApi
1939
1939
  */
1940
- projectsDelete(id: number, apiToken?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Response, any>>;
1940
+ projectsDelete(id: number, apiToken?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Response, any, {}>>;
1941
1941
  /**
1942
1942
  * Export. More details in the [documentation](https://poeditor.com/docs/api#projects_export).
1943
1943
  * @summary Returns the link of the file (expires after 10 minutes). The settings inherited from the project will be the ones at the time of the download.
@@ -1953,7 +1953,7 @@ export declare class ProjectsApi extends BaseAPI {
1953
1953
  * @throws {RequiredError}
1954
1954
  * @memberof ProjectsApi
1955
1955
  */
1956
- projectsExport(id: number, language: string, type: ProjectsExportTypeEnum, apiToken?: string, filters?: string, order?: string, tags?: string, _options?: ProjectsExportOptionsEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ProjectExportResponse, any>>;
1956
+ projectsExport(id: number, language: string, type: ProjectsExportTypeEnum, apiToken?: string, filters?: string, order?: string, tags?: string, _options?: ProjectsExportOptionsEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ProjectExportResponse, any, {}>>;
1957
1957
  /**
1958
1958
  * List Projects. More details in the [documentation](https://poeditor.com/docs/api#projects_list).
1959
1959
  * @summary Returns the list of projects owned by user.
@@ -1962,7 +1962,7 @@ export declare class ProjectsApi extends BaseAPI {
1962
1962
  * @throws {RequiredError}
1963
1963
  * @memberof ProjectsApi
1964
1964
  */
1965
- projectsList(apiToken: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ProjectListResponse, any>>;
1965
+ projectsList(apiToken: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ProjectListResponse, any, {}>>;
1966
1966
  /**
1967
1967
  * Sync Terms. More details in the [documentation](https://poeditor.com/docs/api#projects_sync).
1968
1968
  * @summary Syncs your project with the array you send (terms that are not found in the JSON object will be deleted from project and the new ones added). Please use with caution. If wrong data is sent, existing terms and their translations might be irreversibly lost.
@@ -1973,7 +1973,7 @@ export declare class ProjectsApi extends BaseAPI {
1973
1973
  * @throws {RequiredError}
1974
1974
  * @memberof ProjectsApi
1975
1975
  */
1976
- projectsSync(id: number, data: string, apiToken?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ProjectSyncResponse, any>>;
1976
+ projectsSync(id: number, data: string, apiToken?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ProjectSyncResponse, any, {}>>;
1977
1977
  /**
1978
1978
  * Update Project Settings. More details in the [documentation](https://poeditor.com/docs/api#projects_update).
1979
1979
  * @summary Updates project settings (name, description, reference language, fallback language). If optional parameters are not sent, their respective fields are not updated.
@@ -1987,7 +1987,7 @@ export declare class ProjectsApi extends BaseAPI {
1987
1987
  * @throws {RequiredError}
1988
1988
  * @memberof ProjectsApi
1989
1989
  */
1990
- projectsUpdate(id: number, apiToken?: string, name?: string, description?: string, referenceLanguage?: string, fallbackLanguage?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ProjectViewResponse, any>>;
1990
+ projectsUpdate(id: number, apiToken?: string, name?: string, description?: string, referenceLanguage?: string, fallbackLanguage?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ProjectViewResponse, any, {}>>;
1991
1991
  /**
1992
1992
  * Upload. More details in the [documentation](https://poeditor.com/docs/api#projects_upload).
1993
1993
  * @summary Updates terms / translations - No more than one request every 20 seconds.
@@ -2005,7 +2005,7 @@ export declare class ProjectsApi extends BaseAPI {
2005
2005
  * @throws {RequiredError}
2006
2006
  * @memberof ProjectsApi
2007
2007
  */
2008
- projectsUpload(updating: ProjectsUploadUpdatingEnum, file: File, apiToken?: string, id?: number, language?: string, overwrite?: ProjectsUploadOverwriteEnum, syncTerms?: ProjectsUploadSyncTermsEnum, tags?: string, readFromSource?: ProjectsUploadReadFromSourceEnum, fuzzyTrigger?: ProjectsUploadFuzzyTriggerEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ProjectUploadResponse, any>>;
2008
+ projectsUpload(updating: ProjectsUploadUpdatingEnum, file: File, apiToken?: string, id?: number, language?: string, overwrite?: ProjectsUploadOverwriteEnum, syncTerms?: ProjectsUploadSyncTermsEnum, tags?: string, readFromSource?: ProjectsUploadReadFromSourceEnum, fuzzyTrigger?: ProjectsUploadFuzzyTriggerEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ProjectUploadResponse, any, {}>>;
2009
2009
  /**
2010
2010
  * View Project Details. More details in the [documentation](https://poeditor.com/docs/api#projects_view).
2011
2011
  * @summary Returns projects details
@@ -2015,7 +2015,7 @@ export declare class ProjectsApi extends BaseAPI {
2015
2015
  * @throws {RequiredError}
2016
2016
  * @memberof ProjectsApi
2017
2017
  */
2018
- projectsView(id: number, apiToken?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ProjectViewResponse, any>>;
2018
+ projectsView(id: number, apiToken?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ProjectViewResponse, any, {}>>;
2019
2019
  }
2020
2020
  /**
2021
2021
  * @export
@@ -2286,7 +2286,7 @@ export declare class TermsApi extends BaseAPI {
2286
2286
  * @throws {RequiredError}
2287
2287
  * @memberof TermsApi
2288
2288
  */
2289
- termsAdd(id: number, data: string, apiToken?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TermAddedResponse, any>>;
2289
+ termsAdd(id: number, data: string, apiToken?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TermAddedResponse, any, {}>>;
2290
2290
  /**
2291
2291
  * Add Comment. More details in the [documentation](https://poeditor.com/docs/api#terms_add_comment).
2292
2292
  * @summary Adds comments to existing terms.
@@ -2297,7 +2297,7 @@ export declare class TermsApi extends BaseAPI {
2297
2297
  * @throws {RequiredError}
2298
2298
  * @memberof TermsApi
2299
2299
  */
2300
- termsAddComment(id: number, data: string, apiToken?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TermAddCommentResponse, any>>;
2300
+ termsAddComment(id: number, data: string, apiToken?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TermAddCommentResponse, any, {}>>;
2301
2301
  /**
2302
2302
  * Delete Terms. More details in the [documentation](https://poeditor.com/docs/api#terms_delete).
2303
2303
  * @summary Deletes terms from project.
@@ -2308,7 +2308,7 @@ export declare class TermsApi extends BaseAPI {
2308
2308
  * @throws {RequiredError}
2309
2309
  * @memberof TermsApi
2310
2310
  */
2311
- termsDelete(id: number, data: string, apiToken?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TermDeletedResponse, any>>;
2311
+ termsDelete(id: number, data: string, apiToken?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TermDeletedResponse, any, {}>>;
2312
2312
  /**
2313
2313
  * List Project Terms. More details in the [documentation](https://poeditor.com/docs/api#terms_list).
2314
2314
  * @summary Returns project\'s terms and translations if the argument language is provided.
@@ -2319,7 +2319,7 @@ export declare class TermsApi extends BaseAPI {
2319
2319
  * @throws {RequiredError}
2320
2320
  * @memberof TermsApi
2321
2321
  */
2322
- termsList(id: number, apiToken?: string, language?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TermsListFullResponse, any>>;
2322
+ termsList(id: number, apiToken?: string, language?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TermsListFullResponse, any, {}>>;
2323
2323
  /**
2324
2324
  * Update Terms. More details in the [documentation](https://poeditor.com/docs/api#terms_update).
2325
2325
  * @summary Updates project terms. Lets you change the text, context, reference, plural and tags.
@@ -2331,7 +2331,7 @@ export declare class TermsApi extends BaseAPI {
2331
2331
  * @throws {RequiredError}
2332
2332
  * @memberof TermsApi
2333
2333
  */
2334
- termsUpdate(id: number, data: string, apiToken?: string, fuzzyTrigger?: TermsUpdateFuzzyTriggerEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TermUpdatedResponse, any>>;
2334
+ termsUpdate(id: number, data: string, apiToken?: string, fuzzyTrigger?: TermsUpdateFuzzyTriggerEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TermUpdatedResponse, any, {}>>;
2335
2335
  }
2336
2336
  /**
2337
2337
  * @export
@@ -2518,7 +2518,7 @@ export declare class TranslationsApi extends BaseAPI {
2518
2518
  * @throws {RequiredError}
2519
2519
  * @memberof TranslationsApi
2520
2520
  */
2521
- translationsAdd(id: number, language: string, data: string, apiToken?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TranslationAddedResponse, any>>;
2521
+ translationsAdd(id: number, language: string, data: string, apiToken?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TranslationAddedResponse, any, {}>>;
2522
2522
  /**
2523
2523
  * Update Translations. More details in the [documentation](https://poeditor.com/docs/api#translations_automatic).
2524
2524
  * @summary Updates existing translations.
@@ -2533,7 +2533,7 @@ export declare class TranslationsApi extends BaseAPI {
2533
2533
  * @throws {RequiredError}
2534
2534
  * @memberof TranslationsApi
2535
2535
  */
2536
- translationsAutomatic(id: number, provider: TranslationsAutomaticProviderEnum, apiToken?: string, sourceLanguage?: string, providerSourceLanguage?: string, targetLanguages?: string, _options?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TranslationAutomatedResponse, any>>;
2536
+ translationsAutomatic(id: number, provider: TranslationsAutomaticProviderEnum, apiToken?: string, sourceLanguage?: string, providerSourceLanguage?: string, targetLanguages?: string, _options?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TranslationAutomatedResponse, any, {}>>;
2537
2537
  /**
2538
2538
  * Delete Translations. More details in the [documentation](https://poeditor.com/docs/api#translations_delete).
2539
2539
  * @summary Deletes translations from specified language.
@@ -2545,7 +2545,7 @@ export declare class TranslationsApi extends BaseAPI {
2545
2545
  * @throws {RequiredError}
2546
2546
  * @memberof TranslationsApi
2547
2547
  */
2548
- translationsDelete(id: number, language: string, data: string, apiToken?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TranslationDeletedResponse, any>>;
2548
+ translationsDelete(id: number, language: string, data: string, apiToken?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TranslationDeletedResponse, any, {}>>;
2549
2549
  /**
2550
2550
  * Update Translations. More details in the [documentation](https://poeditor.com/docs/api#translations_update).
2551
2551
  * @summary Updates existing translations.
@@ -2557,7 +2557,7 @@ export declare class TranslationsApi extends BaseAPI {
2557
2557
  * @throws {RequiredError}
2558
2558
  * @memberof TranslationsApi
2559
2559
  */
2560
- translationsUpdate(id: number, language: string, data: string, apiToken?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TranslationUpdatedResponse, any>>;
2560
+ translationsUpdate(id: number, language: string, data: string, apiToken?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TranslationUpdatedResponse, any, {}>>;
2561
2561
  }
2562
2562
  /**
2563
2563
  * @export