Refactored and standardized multilingual text sources for easy import of translated CSV files.
Details
Moved text sources to dedicated files. Standards for these files are as follows,
First part of the file name must be the svlete page name of the corresponding file.
It should be suffixed with _Text.ts
Language must be typescript
Must be a ES6 module that exports the text source by default
Example file : File name WorldWithUs_Text.ts for svelte file WorldWithUs.svelte
export default {
title: {
en: 'The world with us',
fr: 'Services',
si: 'ලොව පුරා ව්යාප්ත අපගේ කණ්ඩායම',
},
description: {
en: 'Our increasing team of passionate people who love to work together to make the world a better place.',
fr: 'Nous sommes une équipe de passionnés qui adorent travailler ensemble pour rendre le monde meilleur.',
si: 'අප දිනෙන් දින වර්ධනය වන, ලෝකය වඩා හොඳ තැනක් කිරීමට එකට වැඩ කිරීමට කැමති උද්යෝගිමත් කණ්ඩායමකි.',
},
};
Summary
Refactored and standardized multilingual text sources for easy import of translated CSV files.
Details
Moved text sources to dedicated files. Standards for these files are as follows,
Example file : File name
WorldWithUs_Text.ts
for svelte fileWorldWithUs.svelte
Checklist
Test Environments