Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): bump slang_flutter and slang #2374

Open
wants to merge 9 commits into
base: dev
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 1, 2025

Bumps slang_flutter and slang. These dependencies needed to be updated together.
Updates slang_flutter from 3.32.0 to 4.4.0

Release notes

Sourced from slang_flutter's releases.

v4.4.0

  • feat: add (fallback) modifier to fallback entries within a map (#268)
  • fix: empty strings in base translations should not be removed when using fallback_strategy: base_locale_empty_string

v4.3.0

  • feat: simplify file names without namespaces (#267)
  • DEPRECATED: Do not use namespaces in file names when namespaces are disabled: strings_de.json -> de.json
  • DEPRECATED: Always specify the locale in the file name (namespace enabled): strings.json -> strings_en.json, except the locale is specified in the directory name

Note: This might make the files order in your IDE less pleasant if input and output files are in the same directory. You can specify the output directory to a subdirectory to avoid this. For example, output_directory: lib/i18n/gen

v4.2.0

  • feat: automatically sanitize invalid keys (e.g. continue, 123) (#257)
  • fix: do not override locale in L10n format definition

v4.1.0

  • feat: add format config to automatically format generated files (#184)
  • fix: correctly generate with enum_name and class_name different from AppLocale / Translations (#254)

v4.0.0

DateFormat, NumberFormat, and Lazy loading

Format translations with DateFormat and NumberFormat:

Hello {name}, today is {today: yMd}. You have {money: currency(symbol: '€')}.

On web, Deferred loading is used to reduce initial load time.

  • feat: add DateFormat and NumberFormat support (#112)
  • feat: add lazy: true config which is enabled by default (#135)
  • fix: slang analyze should not treat translations as unused if they are used in linked translations (#231)
  • fix: slang analyze should detect missing enums (#234)
  • fix: trim enum keys in compressed format while parsing (e.g. "male, female": "..." to "male,female": "...") (#247)
  • fix: compilation error on web when using large interfaces (#251)
  • fix: correctly transform keys with modifiers when key_case is set (#253)
  • Breaking: Require Dart 3.3 and Flutter 3.19
  • Breaking: setLocale, setLocaleRaw, and useDeviceLocale returns a Future, use -Sync suffix for synchronous calls
  • Breaking: output_format removed, always generates multiple files now
  • Breaking: deprecated functions in LocaleSettings (supportedLocales, supportedLocalesRaw) removed
  • Breaking: defining contexts (enums) is no longer allowed in build.yaml or slang.yaml (deprecated in v3.19.0)
  • Breaking: enums specified in context are no longer transformed into pascal case keeping the original case

You can read the detailed migration guide here.

Commits

Updates slang from 3.32.0 to 4.4.0

Release notes

Sourced from slang's releases.

v4.4.0

  • feat: add (fallback) modifier to fallback entries within a map (#268)
  • fix: empty strings in base translations should not be removed when using fallback_strategy: base_locale_empty_string

v4.3.0

  • feat: simplify file names without namespaces (#267)
  • DEPRECATED: Do not use namespaces in file names when namespaces are disabled: strings_de.json -> de.json
  • DEPRECATED: Always specify the locale in the file name (namespace enabled): strings.json -> strings_en.json, except the locale is specified in the directory name

Note: This might make the files order in your IDE less pleasant if input and output files are in the same directory. You can specify the output directory to a subdirectory to avoid this. For example, output_directory: lib/i18n/gen

v4.2.0

  • feat: automatically sanitize invalid keys (e.g. continue, 123) (#257)
  • fix: do not override locale in L10n format definition

v4.1.0

  • feat: add format config to automatically format generated files (#184)
  • fix: correctly generate with enum_name and class_name different from AppLocale / Translations (#254)

v4.0.0

DateFormat, NumberFormat, and Lazy loading

Format translations with DateFormat and NumberFormat:

Hello {name}, today is {today: yMd}. You have {money: currency(symbol: '€')}.

On web, Deferred loading is used to reduce initial load time.

  • feat: add DateFormat and NumberFormat support (#112)
  • feat: add lazy: true config which is enabled by default (#135)
  • fix: slang analyze should not treat translations as unused if they are used in linked translations (#231)
  • fix: slang analyze should detect missing enums (#234)
  • fix: trim enum keys in compressed format while parsing (e.g. "male, female": "..." to "male,female": "...") (#247)
  • fix: compilation error on web when using large interfaces (#251)
  • fix: correctly transform keys with modifiers when key_case is set (#253)
  • Breaking: Require Dart 3.3 and Flutter 3.19
  • Breaking: setLocale, setLocaleRaw, and useDeviceLocale returns a Future, use -Sync suffix for synchronous calls
  • Breaking: output_format removed, always generates multiple files now
  • Breaking: deprecated functions in LocaleSettings (supportedLocales, supportedLocalesRaw) removed
  • Breaking: defining contexts (enums) is no longer allowed in build.yaml or slang.yaml (deprecated in v3.19.0)
  • Breaking: enums specified in context are no longer transformed into pascal case keeping the original case

You can read the detailed migration guide here.

Commits

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 show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @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)

dependabot bot and others added 2 commits January 1, 2025 03:34
Bumps [slang_flutter](https://github.com/slang-i18n/slang) and [slang](https://github.com/slang-i18n/slang). These dependencies needed to be updated together.

Updates `slang_flutter` from 3.32.0 to 4.4.0
- [Release notes](https://github.com/slang-i18n/slang/releases)
- [Commits](https://github.com/slang-i18n/slang/commits/v4.4.0)

Updates `slang` from 3.32.0 to 4.4.0
- [Release notes](https://github.com/slang-i18n/slang/releases)
- [Commits](https://github.com/slang-i18n/slang/commits/v4.4.0)

---
updated-dependencies:
- dependency-name: slang_flutter
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: slang
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@validcube validcube requested a review from Copilot January 3, 2025 17:21

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 109 out of 109 changed files in this pull request and generated no comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant