Skip to content
This repository was archived by the owner on Feb 8, 2023. It is now read-only.

Support for i18n.js framework #4

Open
wants to merge 57 commits into
base: main
Choose a base branch
from

Conversation

RobertSasak
Copy link

This PR is inpired by next i18n and in a way works the same way.

RobertSasak and others added 30 commits November 11, 2021 10:02
Fix react-i18next(and next-i18next) framework integration
Updated readme to include i18n-ally plugin on VS code demo video. 
Demo video by @anilkk and @silbersteine13.
…demo

Add  i18n-ally plugin on VS code video demo
`eamodio.tsl-problem-matcher` was renamed
…rected e2e-tests (lokalise#871)

Co-authored-by: Igor Savin <[email protected]>
Co-authored-by: Michael Overmeyer <[email protected]>
* Add CoC and Contribution guide

* Add test and documentation requirement
Bumps [qs](https://github.com/ljharb/qs) from 6.10.1 to 6.10.3.
- [Release notes](https://github.com/ljharb/qs/releases)
- [Changelog](https://github.com/ljharb/qs/blob/main/CHANGELOG.md)
- [Commits](ljharb/qs@v6.10.1...v6.10.3)

---
updated-dependencies:
- dependency-name: qs
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [minimist](https://github.com/minimistjs/minimist) from 1.2.5 to 1.2.8.
- [Release notes](https://github.com/minimistjs/minimist/releases)
- [Changelog](https://github.com/minimistjs/minimist/blob/main/CHANGELOG.md)
- [Commits](minimistjs/minimist@v1.2.5...v1.2.8)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…alise#915)

Define it ourselves during CI tests.

Co-authored-by: Alex Terehov <[email protected]>
Bumps [shell-quote](https://github.com/ljharb/shell-quote) from 1.7.2 to 1.8.1.
- [Release notes](https://github.com/ljharb/shell-quote/releases)
- [Changelog](https://github.com/ljharb/shell-quote/blob/main/CHANGELOG.md)
- [Commits](ljharb/shell-quote@v1.7.2...v1.8.1)

---
updated-dependencies:
- dependency-name: shell-quote
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Add more detections for fluent-vue
* Update fluent-vue-cli
terales and others added 27 commits April 29, 2023 08:06
* chore: remove SVGs from a README
* chore: remove broken badge from readme
This schema definition says that `ftl`is not a valid parser, but it has been added with the `fluent-vue` support. It is useful for custom frameworks that use plain fluent project.
…pace (lokalise#920)

* Re-enable adding strings to the proper namespace
* Re-enable navigation to strings in the proper namespace
* Remove a new line

---------

Co-authored-by: Alex Terehov <[email protected]>
* Update Transloco documentation hints
* Fix comment typo
* Implement scopes/namespaces for Transloco
* Return first available counting value if nested

* Add extraction support to react-i18next framework

This commit adds the `supportAutoExtraction` array of supported formats
and the `detectHardStrings` method from `GeneralFramework` to enable
hard-coded string extraction for react-i18next framework, without
needing the "general" framework to be enabled/loaded in the
`.vscode/settings.json` file.

* Add i18next-shopify framework

This commit adds the i18next-shopify framework to the list of supported
frameworks. It is an extension of the React i18next framework, with some
configuration changes.

Also add i18next-shopify example app, including a pluralization example.

* Add support for Go to Definition of a translation key

* Fixes usage report for non-missing derived keys

Derived keys (e.g., such as plurals) were being miscategorised as
missing in the usage report.  This commit checks if keys derived from
those found in the missing list (keys that are in use but considered
"not defined") are included in the list of idle keys (keys defined but
not considered in use), indicating that they are indeed defined and in
use.

Fixes lokalise#953

* Fixes Current File Panel report of not found keys

Derived keys (e.g., such as plurals) are being miscategorised as not
found in the Current File Panel report.  This commit checks if any
existing key paths match derived keys paths, and if so, includes them in
the list of in use key paths and removed from the "not found" list.

Fixes lokalise#959

* Chore: fix spellings in code base

---------

Co-authored-by: Kevin O'Sullivan <[email protected]>
Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.4.
- [Release notes](https://github.com/jonschlinkert/word-wrap/releases)
- [Commits](jonschlinkert/word-wrap@1.2.3...1.2.4)

---
updated-dependencies:
- dependency-name: word-wrap
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…okalise#967)

* feat: Add flags for other spanish official langs

- Catalonia, Gallician and Basque

* chore: Gallician name replace ga by gl

---------

Co-authored-by: Oscar Hernandez <[email protected]>
- Fixed grammar inconsistencies
- Fixed a string that was still in English
- Fixed grammar mistakes (in French, all "?", "!" and ":" must have a space before them)
- Fixed some vocabulary that didn't make too much sense in French as is
…e#865)

* fix(vue-i18n): Allow additional attributes on i18n component
* dont allow whitespace before/after "=", allow lf after attr
* WIP

* Load framework

* Add VSCode setting

* Basic PoC

* Cleanup

* Add preferred keystyle

* Clean up

* All permutations for keypaths
…kalise#926)

* Feat: Adding new namespaceMatchRegex config to the custom framework options

* Empty commit to trigger CI

---------

Co-authored-by: Amanda Ranard <[email protected]>
Co-authored-by: Alex Terehov <[email protected]>
* fix: issue lokalise#132 for svelte

* add `get()` support

* replace .* with {key}

* add support for spaces & line breaks in get()

* Empty commit to trigger CI

---------

Co-authored-by: Alex Terehov <[email protected]>
* feat: allow using the source text as a keygen strategy

* Empty commit to trigger CI

---------

Co-authored-by: Alex Terehov <[email protected]>
* fix: add vite-plugin-vue-i18n in framework detection

fix lokalise#751

* Empty commit to trigger CI

---------

Co-authored-by: Alex Terehov <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.