Refactor wallet-related modules
This commit is contained in:
parent
5fed1fbeb1
commit
d2c54825f0
230 changed files with 4534 additions and 2435 deletions
|
|
@ -5,3 +5,13 @@ swift -swift-version 4 tools/GenerateLocalization.swift Telegram-iOS/en.lproj/Lo
|
|||
mkdir -p submodules/WalletUI/Resources
|
||||
swift -swift-version 4 tools/GenerateLocalization.swift Telegram-iOS/en.lproj/Localizable.strings submodules/WalletUI/Sources/WalletStrings.swift submodules/WalletUI/Resources/WalletStrings.mapping "Wallet."
|
||||
|
||||
wallet_strings_path="Wallet/Strings"
|
||||
strings_name="Localizable.strings"
|
||||
rm -rf "$wallet_strings_path"
|
||||
|
||||
for f in $(basename $(find "Telegram-iOS" -name "*.lproj")); do
|
||||
mkdir -p "$wallet_strings_path/$f"
|
||||
if [ -f "Telegram-iOS/$f/$strings_name" ]; then
|
||||
cat "Telegram-iOS/$f/$strings_name" | grep -E '^"Wallet\..*?$' > "$wallet_strings_path/$f/$strings_name"
|
||||
fi
|
||||
done
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue