Okay so this one is a little tricky, according to the IRCC description, if the translator is certified in the country where the documents were translated, then it is fine. It is only with uncertified translators that you need an affidavit.
If the translation is being done in Canada
Applicants should use the services of a certified translator who is in good standing with their provincial or territorial organization and certified to translate documents.
If the translation is being done outside of Canada
Applicants should use the services of a translator who is accredited (officially recognized or authorized) in the country where the translation is being completed.
For all applicants (in or outside of Canada): translations must
not be done by
- the applicants themselves
- members of the applicant’s family
- the applicant’s representatives or consultants
Source:
https://www.canada.ca/en/immigration-refugees-citizenship/corporate/publications-manuals/operational-bulletins-manuals/refugee-protection/removal-risk-assessment/translation.html