sijie closed pull request #2322: [website] Translation strings are not 
downloaded correctly
URL: https://github.com/apache/incubator-pulsar/pull/2322
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/site2/tools/docker-build-site.sh b/site2/tools/docker-build-site.sh
index de89b8f92a..de8731468c 100755
--- a/site2/tools/docker-build-site.sh
+++ b/site2/tools/docker-build-site.sh
@@ -44,4 +44,4 @@ 
CROWDIN_DOCUSAURUS_API_KEY=${CROWDIN_DOCUSAURUS_API_KEY:-UNSET}
 
 DOCKER_CMD="docker run -i -e CI_USER=$CI_USER -e CI_GROUP=$CI_GROUP -e 
CROWDIN_DOCUSAURUS_PROJECT_ID=${CROWDIN_DOCUSAURUS_PROJECT_ID} -e 
CROWDIN_DOCUSAURUS_API_KEY=${CROWDIN_DOCUSAURUS_API_KEY} -v $ROOT_DIR:/pulsar 
$IMAGE"
 
-$DOCKER_CMD bash -l -c 'cd /pulsar/site2/website && yarn && yarn run 
crowdin-upload && yarn run crowdin-download && yarn build && node 
./scripts/replace.js && cp -R ./build/pulsar/* /pulsar/generated-site/content'
+$DOCKER_CMD bash -l -c 'cd /pulsar/site2/website && yarn && yarn 
write-translations && yarn run crowdin-upload && yarn run crowdin-download && 
yarn build && node ./scripts/replace.js && cp -R ./build/pulsar/* 
/pulsar/generated-site/content'
diff --git a/site2/website/pages/en/download.js 
b/site2/website/pages/en/download.js
index c58599e51d..5960cb12d7 100644
--- a/site2/website/pages/en/download.js
+++ b/site2/website/pages/en/download.js
@@ -108,8 +108,8 @@ class Download extends React.Component {
               <translate>
                 Once you've downloaded a Pulsar release, instructions on 
getting up and running with a standalone cluster
                 that you can run on your laptop can be found in the{' '}
-                <a 
href={`${siteConfig.baseUrl}docs/${this.props.language}/standalone`}>Run Pulsar 
locally</a> tutorial.
               </translate>
+                <a 
href={`${siteConfig.baseUrl}docs/${this.props.language}/standalone`}><translate>Run
 Pulsar locally</translate></a> <translate>tutorial</translate>.
               </p>
             </div>
             <p>


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to