This is a tool that will translate text into another language. It is recommended to use Stackery to get this setup.
- Create an IAM user with
s3:PutObject
permission and enable programic access. Take note of the access key/secret access key. - Add the
accessKeyId
andsecret
to your environment. - Deploy the stack.
- Take note of the
OriginalFiles
bucket ARN and scope the permission for the IAM user you created in step 1 tos3:ObjectPut
for just that bucket. The policy document should look something like this...be sure to replace the<>
content with your own.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:PutObject"
],
"Resource": [
"arn:aws:s3:::language-translator-<YOUR STACKERY ENVIRONMENT NAME HERE>-originalf-<YOUR AWS ACCOUNT ID HERE>/*"
]
}
]
}
- Upload a text file to the
OriginalFiles
s3 bucket in the AWS console. Should be in formatSourceLanguageCode/TargetLanguageCode/filename.txt
. - The translated text will appear in the
TranslatedFiles
s3 bucket under the same file pathSourceLanguageCode/TargetLanguageCode/filename.txt
. - Alternatively, you can head to the url for your frontend. It'll be something like
http://<STACKERY STACK NAME>-<STACKERY ENVIRONMENT NAME>-frontend.s3-website-<AWS ACCOUNT REGION>.amazonaws.com/
.
- Add a file
src/PopulateFrontend/frontend-code/src/config.js
with the following:export default { accessKeyId: '<YOUR-ACCESS-KEY-ID>', secret: '<YOUR-SECRET-ACCESS-KEY>', region: '<YOUR-REGION>', apiEndpoint: '<YOUR-API-ENDPOINT>', originalBucket: '<YOUR-ORIGINAL-BUCKET-NAME>' };
- DynamoDB has an item size limit. GitHub issue with suggestions on how to fix this here.
- Supported language codes and pairs can be found here
See open issues
If you find a bug or have a question, feel free to open a new issue and our maintainers will reply as soon as they possibly can. Please describe the issue including steps to reproduce if there are any.
- Fork the respository
- Make any changes you'd like
- Open a new PR against
master
with a description of the proposed changes as well as any other information you find relevant. - If your PR fixes an open issue be sure to write
fixes #[ issue number here ]
Please send a direct message to @deeheber on Twitter or @FarrahC32 on Twitter if any of your questions have not been addressed by the documentation in this repository.