From 3129c0e6858d2764524c437900afbef85d0148e2 Mon Sep 17 00:00:00 2001 From: "Martin M." Date: Sat, 28 Sep 2024 20:41:15 +0200 Subject: [PATCH 1/3] Update README.md (i18n docu) i18n data files should always be located within an i18n directory. This directory might be located at root of adapter or i.e. within /lib or any other directory. Adapt README to make this more clearly. @GermanBluefox Please review / confirm or reject --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 56aea4f..038e4b6 100644 --- a/README.md +++ b/README.md @@ -104,7 +104,7 @@ console.log(I18n.translate('text to translate %s', 'argument1')); console.log(JSON.stringify(I18n.getTranslatedObject('text to translate %s and %s', 'argument1', 'argument2'))); ``` -You can place your `i18n` folder in root of adapter or in `lib` folder. If your `i18n` files are in `lib` directory, so call the `init` function like this: +You can place your `i18n` folder in root of adapter or in `lib` folder. If your `i18n` directory containing the `i18n` files is in `lib` directory, call the `init` function like this: ```javascript const { join } = require('node:path'); From 2668bd1351b94e26e3542b460a58f79ce2c699b4 Mon Sep 17 00:00:00 2001 From: "Martin M." Date: Sat, 28 Sep 2024 20:42:30 +0200 Subject: [PATCH 2/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 038e4b6..8f581df 100644 --- a/README.md +++ b/README.md @@ -104,7 +104,7 @@ console.log(I18n.translate('text to translate %s', 'argument1')); console.log(JSON.stringify(I18n.getTranslatedObject('text to translate %s and %s', 'argument1', 'argument2'))); ``` -You can place your `i18n` folder in root of adapter or in `lib` folder. If your `i18n` directory containing the `i18n` files is in `lib` directory, call the `init` function like this: +You can place your `i18n` folder in root of adapter or in `lib` folder. If your `i18n` folder containing the `i18n` files is in `lib` directory, call the `init` function like this: ```javascript const { join } = require('node:path'); From cdcb65e37e00657f0c5f614df91db0344c4b924d Mon Sep 17 00:00:00 2001 From: Bluefox Date: Mon, 30 Sep 2024 12:15:53 +0800 Subject: [PATCH 3/3] Update README.md i18b => internationalisation --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8f581df..e66cfac 100644 --- a/README.md +++ b/README.md @@ -104,7 +104,7 @@ console.log(I18n.translate('text to translate %s', 'argument1')); console.log(JSON.stringify(I18n.getTranslatedObject('text to translate %s and %s', 'argument1', 'argument2'))); ``` -You can place your `i18n` folder in root of adapter or in `lib` folder. If your `i18n` folder containing the `i18n` files is in `lib` directory, call the `init` function like this: +You can place your `i18n` folder in root of adapter or in `lib` folder. If your `i18n` folder containing the internationalisation files is in `lib` directory, call the `init` function like this: ```javascript const { join } = require('node:path');