Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[firestore-translate-text] allow single language list #46

Merged

Conversation

thatfiredev
Copy link
Member

@thatfiredev thatfiredev commented Oct 15, 2019

This PR should:

Copy link
Member

@Ehesp Ehesp left a comment

Choose a reason for hiding this comment

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

Thanks for this. Couple of comments left.

@@ -90,7 +90,7 @@ params:
For these codes, visit the [supported languages list](https://cloud.google.com/translate/docs/languages).
default: en,es,de,fr
example: en,es,de,fr
validationRegex: "^[a-zA-Z,-]+[a-zA-Z-]{2,}$"
validationRegex: "^[a-zA-Z,-]*[a-zA-Z-]{2,}$"
Copy link
Member

Choose a reason for hiding this comment

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

Just to confirm this works:

https://regex101.com/r/99E00o/4

firestore-translate-text/functions/src/config.ts Outdated Show resolved Hide resolved
firestore-translate-text/functions/src/index.ts Outdated Show resolved Hide resolved
firestore-translate-text/functions/src/index.ts Outdated Show resolved Hide resolved
@thatfiredev
Copy link
Member Author

thatfiredev commented Oct 16, 2019

@Ehesp Thanks for your review! I've addressed the requested changes. :)

@laurenzlong laurenzlong changed the base branch from master to next October 17, 2019 21:04
@laurenzlong laurenzlong merged commit 5150eba into firebase:next Oct 22, 2019
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.

Target languages field fails to accept one language
4 participants