[L10n]
import_xml
: Fix error in the log message about total project locales count.from_xml
: Handle new line symbols for json target.
- [L10n]
from_xml
added missing characters for validator checking.
[L10n] import_xml
- Support name of the directory without
_diffs
suffix. Therefore, now you can import directory with files like this:intl/intl_diffs_es.xml
; - Add warning when not all locales was imported.
- Fixed: invalid log about locale.
- Refactor of some console output.
- [L10n]
generate
always generate main messages file in the same order.
- [L10n]
from_xml
validates strings for Cyrillic and other inappropriate characters for locales, where Latin is required. Added config parameterrequire_latin
(has default value). - README: "Updating" section.
[L10n] import_xml
:
- More relevant suggestion for
--target
value when failed to find appropriate file for import. - Fixed: Invalid
--diff
flag name in suggestion (should be--diffs
).
- Fixed: Program always have 0 exit code, even when execution failed.
- [L10n]
from_xml
:- Clearer and more detailed error message if there is no imported key in the base .strings file. Also added suggestions for fixes.
- Refactor output strings: "export" replaced with more consistent in this context "import".
[L10n] import_xml
:
- Detailed error explanation with a suggestion if can't find appropriate file for import.
- Fixed: null check error when imported file is incorrect.
- IMPORTANT [L10n]
from_xml
: Single quotes in the xml now escaped with another single quote for arb target. See documentation for details. Remove any manual escapes for'
from xml if you have any. - Ignore
pubspec.yaml
from hidden folders (like.dart_tools/
). - Root
pubspec.yaml
is always the first. - [L10n]
import_xml
: Prints total locales count in project at the end. - [L10n]
from_xml
: Message on success for json target.
- Check for updates and message about a new version in the output.
- [L10n]
import_xml
: Support for--locale
argument. - [L10n]
import_xml
Fixed: Failed to import diff for not main localization files. - [L10n]
import_xml
Fixed: Incorrect locations fallback (can change language, not only pick up region).
- [L10n]
import_xml
: Support for .zip from Google Play as a source (argument--path
). - [L10n]
import_xml
: Automatically detect diffs import for the translation from Google Play with suffix_diffs
. - [L10n]
import_xml
: Translations are imported in alphabetical order.
- Command to see a current version of alex:
alex --version
.
- [L10n]
import_xml
: Support for explicit diffs import (new argument--diffs
). - Readme: fixed "Generate XML for translation" section.
- [L10n]
import_xml
: Support for import files with suffix_diffs
in plane directory structure (intl/intl_{locale}/intl_diffs.xml
orintl_diffs/intl_diffs_{locale}/intl_diffs.xml
);
- [L10n]
to_xml
: Export new lines as\n
. - [L10n]
from_xml
Fixed: Adds slash for\n
on import.
- [Release] Small help fix.
- [Release] Local build now build for Android and iOS by default. See parameter
--platforms
.
- [L10n]
to_xml
:- Prints info about written diffs.
- Do not create empty diff file.
- [L10n]
import_xml
:- Prints info about imported diffs.
- Handle diff file with locale at the end.
- Add documentation about import diffs.
- [L10n] Common prints improvements.
- [Release] Support for provide scrips to run before release.
- [Release] Parameter
--entry-point
to define the entry point for local build.
- Using ChatGPT to generate Release Notes (only en and ru locales). You should set global setting
open_ai_api_key
to use it. - Added global settings. You can set it using new
alex settings set
command.
- Load config recursive by default.
- Fixed: broken release command with localization.
- Fixed: broken release command with configuration in subfolder.
- Support for configuring names for GIT branches.
- [Release] Fixed: failed on empty commit attempt during local build.
- [Release] Added flag
--local
for local build. - [Release] Added flag
--skip_l10n
to skip localization process when release. - [Release] Added
ci
section inalex
configuration. Ability to disable CI for project.
- Fix "CHANGELOG.md has unknown structure" error when run release start command.
- [Release] Automatically generate and commit translations after check before run release.
-
[L10n] Added
check_translate
command to check for translations for all locale strings. -
[Release] Automatically check translations for locale (en by default) before run release.
- [L10n] import and export only difference strings of xml file.
- [Release] For iOS increased What's New section length to 4000 characters.
- [L10n] More details in error message if no files for import was found.
- [Code]
code gen
command supports run generation for subproject from root folder.
- Disable output for checking FVM.
- Use
fvm
if installed.
- Support for Dart 2.15 hosted dependency short format.
- [L10n] Working with alex configuration defined in pubspec.yaml within subfolder.
- Prints stack trace in debug.
- [Finish Feature] Removes local feature branch if it's merged in remote.
- More detailed error when parse XML failed.
- Aliases for
l10n
(l
) andl10n generate
(l10n gen
).
- Support for SSH GIT remote URL.
- [Finish Feature] Returns to the original branch after finish.
- [L10n] Ability to provide different target filename for
import_xml
.
- [Finish Feature]
- Adds issue ID for changelog line.
- Fixed: Description for
changelog
argument.
l10n from_xml
:- Fixed: cast error on ARB/JSON processing.
- More detailed log on exception in verbose mode.
l10n to_xml
:- Fixed: cast error on ARB processing.
- Fixed: exceptions during execution are not handled.
- More detailed log on exception in verbose mode.
pub update
:- trim dependency name;
- error if dependency is not found in any of pubspec files.
- L10n:
from_xml
supportsname
argument forjson
target. - Finish Feature: Ability to provide changelog line as a command argument.
- Migrated to null safety.
- L10n:
to_xml
supportslocale
argument.
- Release Start: check if has build number in version string
- Finish Feature:
- Ability to provide issue id in interactive mode.
- List of current feature branches.
- Check if run command not in project directory.
- L10n:
from_xml
allow values without parameters in plurals if original string doesn't have it. - Finish Feature: Prints message in console if no changelog entered.
- L10n:
to_xml
supports string without parameter for plural.
- L10n: Support for intl_generator.
- Handle Git merge conflicts.
- New command:
alex feature finish
- used to finish feature. It's merge branches, update changelog and remote feature branch from remote.
l10n import_xml
support for new Google Play naming: just base filename, without translation id and locale.
pub get
before code generation.
- New command:
alex pubspec get
- used to get dependencies. It's useful for get dependencies in project with inherit packages, or in repository with multiple packages. - Alias
pub
forpubspec
command.
- New command:
alex pubspec update
- used for update dependency. It's useful for update git dependencies. - [release] Prints release notes and changelog at the end of successful release.
- [release] Mark required for release notes langs with
*
.
- Auto
pub get
onl10n
extract
andgenerate
commands.
- Support for Norwegian locale as
nb
.
- Convert
iw
tohe
for files from Google Play. - Auto define target locale with region when locale from Google Play contains only lang code.
- Fails run if key is not found for iOS localization files.
- Added support for
no
locale for iOS (usenn-NO
). - Fixed: exceptions in from_xml doesn't handles properly.
- Fixed:
_requireTargetFile()
may return a not existed file.
- Fixed: RangeError if old file shorter than header.
import_xml
imports only existing locales by default. Use--new
argument if you want to import all locales.- Fixed:
from_xml
did not strip escape slashed with double quotes.
- Fixed: Changes check for arb files doesn't work on Windows.
- Fixed: Corrupt newline symbols when generate arb on Windows.
- Fixed: comment before
xml
tag breaks xml file.
- Fixed: doesn't create file from xml if one not exit.
- Fixed:
to_xml
doesn't consider that locale on backend may be in different format.
- L10n: Command
from_xml
updates.strings
and.arb
files only if there are changes.
- L10n: Command
from_xml
for iOS supports all files, not onlyInfoPlist.strings
. - L10n: Command
to_xml
supports iOS localization.strings
files. - L10n: Print base ARB when alex search for meta, if meta for key was not found.
- Error if key has parameters in original file, but doesn't have any in translation.
- Verification of parameters, that was translated by mistake (previous version doesn't check parameters with non Latin symbols).
- L10n: New target
json
infrom_xml
command. Used to apply translations for backend. - Fixed: Invalid name when import all files.
- Support for zh locales for iOS.
- L10n: Command
import_xml
allow to import any file, not only main. Single or all at once.
- Release: Do not require changelog for locale is it has default.
- L10n: Command
import_xml
supports custom xml file names format. - Added
innim_lint
analysis ruleset.
- Fixed: can't get file from assets on macOS.
- L10n: Command
import_xml
to import translations from Google Play to the projects's xml files.
- L10n: Fixed locale prefix format for iOS in
from_xml
.
- Fixed: Invalid assets path.
- Set minimum textarea height as 5 lines for a release notes.
- "v" prefix removed from branch name/tag.
- Release: New Release feature! Just execute
alex release start
and enjoy 🚀
- L10n: Fixed locale prefix format for Android in
from_xml
.
- L10n:
from_xml
supportsru_RU
format for locales. - L10n: generation in release mode.
- Pass
--verbose
argument inpub run
command, if verbose enabled.
- L10n: handled Android restricted locale names.
- L10n: Remove escape slashes for strings from xml.
- Run pub commands prints output immediate (during invocation).
- Run pub commands prints std output even if it's failed.
- Export json localization (for backend) to xml.
- Fixed fail to run l10n commands on Windows.
- Import translations from xml.
- Working with localization: extract, generate and export to xml.