Our service for defining and generating email templates and push notifications.
- Download the recent snapshot of the documents from Prismic with "Export your documents" on Import/Export
- Extract the archive and get the documents that should be processed
- Create your own version on the
extract-messages
script based on the templateFOLDER_WITH_PRISMIC_FILES
is the path for the folder where Prismic documents that should be processedOUTPUT_JSON_FILE
is the path for the json file with the results of the conversionEXTRA_CONDITIONS_FUNCTION
is optional param. It is the function that could help to filter some documents by some conditions. Also, by default only documents withlang
equals "en-gb" are proccessed since English is the our base language
- Run the your custom script with
node script_path/it.js
- Get the json file with the path
OUTPUT_JSON_FILE
and use it for uploading to the lokalise- At the moment, you could send the file to [email protected] so he could upload it to the lokalise. Later on we will create some automatisation here too.
- Download the recent snapshot of the documents from Prismic with "Export your documents" on Import/Export
- Extract the archive and get the documents that should be processed
- Get the file with the recent translations that you want to apply for the Prismic
- You could get this file directly from lokalise using this process: lokalise-downloading-translation-files with [email protected] account. Password could be found in 1Password. The format of the file should be "JSON"
- You could ask [email protected] so he could give this file for you
- Create your own version on the
create-prismic-files
script based on the templateFOLDER_WITH_PRISMIC_FILES
is the path for the folder where Prismic documents that should be processedOUTPUT_FOLDER_WITH_TRANSLATION_FILES
is the path for the folder where the translated documents will be storedSOURCE_FILE_WITH_TRANLSATIONS
is the path for the file downloaded from lokalise with the translationsLOCALE
is the name of the locale from PrismicUPDATE_OR_CREATE
should equal to "CREATE" when creating new files and should equal to "UPDATE" when updating existed filesEXTRA_CONDITIONS_FUNCTION
is optional param. It is the function that could help to filter some documents by some conditions. Also, by default only documents withlang
equals "en-gb" are proccessed since English is the our base language
- Run the your custom script with
node script_path/it.js
- Get the Prismic files with the path
OUTPUT_FOLDER_WITH_TRANSLATION_FILES
and use it for uploading to Prismic with Import/Export choosing "Import your documents"