Skip to content

feat: Added a ISO639-1 decorator - #2047

Closed
Gustrb wants to merge 2 commits into
typestack:developfrom
Gustrb:develop
Closed

Gustrb wants to merge 2 commits into
typestack:developfrom
Gustrb:develop

Conversation

@Gustrb

@Gustrb Gustrb commented Apr 15, 2023

Copy link
Copy Markdown

This decorator is used to check if a string matches the ISO 639-1, that describes how country languages prefixes should look like.
Fortunatelly, it just delegates the validation to an already existent function in the validator library

This PR implements issue #2045

This decorator is used to check if a string matches
the ISO 639-1, that describes how country languages prefixes
should look like.
Fortunatelly, it just delegates the validation to an already existent
function in the validator library
@ytetsuro

ytetsuro commented Apr 22, 2023 •

Copy link
Copy Markdown
Contributor

It would be great if you could update the README.md as well!
Please add a test.

@rubiin rubiin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add tests as well as update the readme

}

/**
* Checks if the string is an ISIN (stock/security identifier).

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy/paste error from other decorator.

@te-online

Copy link
Copy Markdown

@Gustrb Any update on your PR? This looks like a nice addition 😊

@Gustrb

Gustrb commented Apr 30, 2024

Copy link
Copy Markdown
Author

@te-online, I kind of forgot about it.
I added here since I needed this function inside the library, but I hacked my way into it a few months ago

Will work on adding some tests and fixing the comments pointed out :P

@mohamedelbalshy

mohamedelbalshy commented Aug 16, 2024 •

Copy link
Copy Markdown

any updates on this PR ?

@Blondie-TheManWithNoName

Copy link
Copy Markdown

Someone make this PR happen, would be useful to have

@braaar

braaar commented Mar 2, 2026

Copy link
Copy Markdown
Member

fixed in #2626

@braaar braaar closed this Mar 2, 2026
@github-actions

github-actions Bot commented Apr 2, 2026

Copy link
Copy Markdown

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Apr 2, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

8 participants