5

I'm trying to create scratch org where the languages in Translation Workbench would be marked as 'Active' by default. For example I would like to create scratch org with Japanese activated by default. I know that first of all Translation Workbench has to be enabled and I have done that using this:

"languageSettings": {
        "enableTranslationWorkbench": true
},

and that works. But I cannot find a way to activate Japanese when creating scratch org. Is that even possible, or do I have to do that manually? (I have the ja.translation-meta.xml)

I want it to looks like this by default: enter image description here

2 Answers 2

0

Are you able the list of supported languages upon scratch org creation? Or did you add them manually? When I create a scratch org with languageSettings on the definition file, as you mention above, I have an empty list of supported languages.

1
  • SFSE is a Questions & Answers site, not a threaded forum. Please see the various pertinent/relevant notes in Why and how are some answers deleted?, and be aware that your "answer" will likely be deleted. You could contribute to SFSE in ways that you gain reputation so that you can comment under someone else's question (you only need 50 rep); or you could possibly ask a new question, and in it you could link to this question for reference.
    – Moonpie
    Oct 6, 2022 at 15:00
0

From what I've seen, if you have a Translations Metadata file (like translations/fr.translation-meta.xml for instance), pushing it to the scratch org will create the language as active.

If the language has been deactivated previously (like in a sandbox), it won't be reactivated though, but that shouldn't be an issue for you during scratch org creation.

However there is also a Translation object that can be queried/updated to change that status via the IsActive field.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .