aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-01-30 00:00:19 +0100
committerArmand Philippot <git@armandphilippot.com>2022-01-30 00:00:19 +0100
commitfbd74df78e8c5a1d9c41f52c726fdc5870cbc069 (patch)
tree476a019dc0ad9eac22d53094b3423e0fc33a60c0 /src/utils
parent82d310403c4bb09bc2f0a204b6374934a10cf348 (diff)
chore(baseline): handle baseline translation manually
I cannot use formatjs to translate the website baseline since I need an async function to load the message. If I use the getIntlInstance helper outside NextJS, webpack is complaining about fs and path.
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/config.ts5
-rw-r--r--src/utils/helpers/rss.ts2
2 files changed, 5 insertions, 2 deletions
diff --git a/src/utils/config.ts b/src/utils/config.ts
index 1c227cc..dc009d9 100644
--- a/src/utils/config.ts
+++ b/src/utils/config.ts
@@ -1,6 +1,9 @@
export const settings = {
name: 'Armand Philippot',
- baseline: 'Front-end developer',
+ baseline: {
+ en: 'Front-end developer',
+ fr: 'Intégrateur web',
+ },
copyright: {
startYear: '2012',
endYear: new Date().getFullYear(),
diff --git a/src/utils/helpers/rss.ts b/src/utils/helpers/rss.ts
index 55b009a..305c6e7 100644
--- a/src/utils/helpers/rss.ts
+++ b/src/utils/helpers/rss.ts
@@ -27,7 +27,7 @@ export const generateFeed = async () => {
link: websiteUrl,
};
const copyright = `${settings.name} CC BY SA ${settings.copyright.startYear} - ${settings.copyright.endYear}`;
- const title = `${settings.name} | ${settings.baseline}`;
+ const title = `${settings.name} | ${settings.baseline.fr}`;
const feed = new Feed({
author,