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

Explain how to use the buildCommand for internationalization #2344

Merged
merged 2 commits into from Jan 9, 2023

Conversation

nvdaes
Copy link
Contributor

@nvdaes nvdaes commented Jan 3, 2023

We discussed this on PR #2329

@@ -16,5 +16,11 @@ or

LOCALE=fr yarn dev

To host a localized version of Pinafore using Vercel, in the [vercel.json file](https://github.com/nolanlawson/pinafore/blob/master/vercel.json), replace the buildCommand value accordingly.
Copy link
Owner

Choose a reason for hiding this comment

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

Rather than say "replace the buildCommand value accordingly," I think it would be more helpful to refer directly to the line of code:

https://github.com/nvdaes/vercelPinafore/blob/45c70fb2088fe5f2380a729dab83e6f3ab4e6291/vercel.json#L9

Otherwise it's not necessarily clear what needs to be done.

There is also an experimental `LOCALE_DIRECTION` environment variable for the direction (LTR versus RTL) which is
exposed to the source code while building.

To host a localized version of Pinafore using Vercel, in the [vercel.json file](https://github.com/nolanlawson/pinafore/blob/master/vercel.json), replace the buildCommand key accordingly.
Copy link
Owner

Choose a reason for hiding this comment

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

This seems redundant.

@nvdaes
Copy link
Contributor Author

nvdaes commented Jan 8, 2023

Hi @nolanlawson , I've addressed your comments. Please let me know if something is still needed.

@nolanlawson
Copy link
Owner

LGTM, I am just waiting for the build to be unbroken so I can merge PRs. #2349

@nolanlawson nolanlawson merged commit c2851ce into nolanlawson:master Jan 9, 2023
@nvdaes
Copy link
Contributor Author

nvdaes commented Jan 9, 2023 via email

alice-werefox pushed a commit to alice-werefox/sema-werefox-cafe that referenced this pull request Apr 3, 2023
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.

None yet

2 participants