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

feat(deriv_localizations): add localization for deriv mobile chart wrapper package #627

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 14 additions & 5 deletions packages/deriv_localizations/l10n.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


# Directories containing ARB files
feature_dirs=("deriv_auth" "deriv_passkeys")
feature_dirs=("deriv_auth" "deriv_passkeys" "deriv_mobile_chart_wrapper")

# Base localization directory
base_l10n_dir="lib/l10n"
Expand All @@ -29,14 +29,23 @@ done

ls $base_l10n_dir/generated

echo "Localization generation complete."


# Add the generated localization files to Git
git add "$base_l10n_dir/generated"

# Create deriv_localizations.dart barrel file under lib folder.
localizations_file="lib/deriv_localizations.dart"
echo "// Generated file for exporting localization classes" > $localizations_file

for dir in "${feature_dirs[@]}"; do
echo "export 'l10n/generated/$dir/${dir}_localizations.dart';" >> $localizations_file
done

echo "Created deriv_localizations.dart barrel file with exports."

# Add and commit the deriv_localizations.dart barrel file to Git
git add $localizations_file

# Commit the changes
git commit -m "Update localizations"


echo "Localization generation complete."
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"labelIndicators": "Indicators"
}
Loading