Skip to content

Document selecting API error language - #115

Closed
javorosas wants to merge 1 commit into
mainfrom
docs/api-error-language
Closed

Document selecting API error language#115
javorosas wants to merge 1 commit into
mainfrom
docs/api-error-language

Conversation

@javorosas

@javorosas javorosas commented Sep 8, 2026

Copy link
Copy Markdown
Member

Documents how to request English API V2 errors using the SDK's existing headers constructor option, available since 4.17.0. The example covers regional variants, fallback behavior, stable codes, external messages, local SDK errors, and instance-level configuration.

The existing Node and browser custom-header tests now explicitly verify that Accept-Language: en-US reaches the request alongside SDK authentication.

Validation: full pnpm test passed, including build, 34 runtime tests, and type tests; lint passed.

@javorosas

Copy link
Copy Markdown
Member Author

Closing this PR because the SDK already supports custom request headers. The Accept-Language usage will be documented centrally in facturapi-docs.

@javorosas javorosas closed this Sep 8, 2026
@javorosas
javorosas deleted the docs/api-error-language branch September 8, 2026 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant