giranm / pd-live-react

An open-source, real-time, unified console to view and manage PagerDuty incidents.
https://giranm.github.io/pd-live-react/
MIT License
10 stars 10 forks source link

Bump i18next-parser from 6.6.0 to 7.0.3 #375

Closed dependabot[bot] closed 1 year ago

dependabot[bot] commented 1 year ago

Bumps i18next-parser from 6.6.0 to 7.0.3.

Release notes

Sourced from i18next-parser's releases.

7.0.0

  • BREAKING: change the API for defaultValue. Deprecate skipDefaultValues and useKeysAsDefaultValues options. #676
  • Add support for shouldUnescape option in jsx-lexer #678
  • Add support for .ts, .json and .yaml config #673
  • Update dependencies

Migrating from 6.x to 7.x

he API to manage what default value is being used was getting too complicated. This version simplifies the API by deprecating the skipDefaultValues and useKeysAsDefaultValues options and adding a value argument when the defaultValue option is used as a function. Here are couple example of how it can be used:

To replace skipDefaultValue, make the following change:

// 5.x.x
{
  skipDefaultValues: true
}

// 6.x.x { defaultValue: function (locale, namespace, key, value) { return ''; } }

To replace useKeysAsDefaultValues, make the following change:

// 5.x.x
{
  useKeysAsDefaultValues: true
}

// 6.x.x { defaultValue: function (locale, namespace, key, value) { return key; } }

And now you have complete control over the logic:

// 6.x.x
{
  defaultValue: function (locale, namespace, key, value) {
    if (locale === 'fr') {
      return '';
</tr></table> 

... (truncated)

Changelog

Sourced from i18next-parser's changelog.

7.0.3

  • Fix a bug when using the cli and passing no config file #690
  • Update dependencies

7.0.0

  • BREAKING: change the API for defaultValue. Deprecate skipDefaultValues and useKeysAsDefaultValues options. #676
  • Add support for shouldUnescape option in jsx-lexer #678
  • Add support for .ts, .json and .yaml config #673
  • Update dependencies
Commits
  • 12d6139 Bump to 7.0.3
  • b6d7211 Bump to 7.0.2
  • e93e67d Fix config loader bug
  • 73fc50e Bump to 7.0.1
  • 1cfb14e Fix lilconfig loader when no config file is being passed fix #690
  • 81acff4 Merge pull request #689 from i18next/dependabot/npm_and_yarn/master/i18next-2...
  • bc411d5 Build(deps): bump i18next from 22.0.4 to 22.0.5
  • c1f2f14 Bump to 7.0.0
  • 7d852be Merge pull request #673 from guoyunhe/support-ts-config-file
  • 90f1224 Merge branch 'master' into support-ts-config-file
  • Additional commits viewable in compare view


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
giranm commented 1 year ago

Need to update https://github.com/giranm/pd-live-react/blob/develop/i18next-parser.config.js#L68

dependabot[bot] commented 1 year ago

A newer version of i18next-parser exists, but since this PR has been edited by someone other than Dependabot I haven't updated it. You'll get a PR for the updated version as normal once this PR is merged.

gsreynolds commented 1 year ago

Looks good with the new API for defaultValue. Added a Testing key and generated the locales, previous behaviour is maintained.

diff --git a/src/components/Auth/AuthComponent.js b/src/components/Auth/AuthComponent.js
index 22c090b..0045a3f 100644
--- a/src/components/Auth/AuthComponent.js
+++ b/src/components/Auth/AuthComponent.js
@@ -88,6 +88,7 @@ const AuthComponent = (props) => {
           onClick={() => window.location.assign(authURL)}
         >
           {t('Sign In')}
+          {t('Testing')}
         </Button>
       </Form>
     </div>
diff --git a/src/locales/de/translation.json b/src/locales/de/translation.json
index e98029d..33706b9 100644
--- a/src/locales/de/translation.json
+++ b/src/locales/de/translation.json
@@ -146,6 +146,7 @@
   "Synced with": "Synchronisiert mit",
   "Team": "Team",
   "Teams": "Teams",
+  "Testing": "Testing",
   "The alerts of the selected incidents will be merged into a single incident": "Die Warnungen der ausgewählten Vorfälle werden zu einem einzigen Vorfall zusammengeführt",
   "The remaining selected incidents will be resolved after the merge is complete": "Die verbleibenden ausgewählten Vorfälle werden nach Abschluss der Zusammenführung als gelöst geschlossen",
   "Title": "Titel",