- Open below directory in Finder with Cmnd + Shift + G
/Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Versions/A/Resources/
-
Open
IDETextKeyBindingSet.plistwith a text editor (not Xcode's plist editor). -
Add this in:
/Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Versions/A/Resources/
Open IDETextKeyBindingSet.plist with a text editor (not Xcode's plist editor).
Add this in:
| #! /usr/bin/swift | |
| // Douglas Hill, March 2020 | |
| // Prints out translations from Apple’s glossary files matching text in a supplied English .strings file. | |
| // More detail in the article at https://douglashill.co/localisation-using-apples-glossaries/ | |
| import Foundation | |
| let stringsSource = URL(fileURLWithPath: "PUT THE PATH TO YOUR ENGLISH .strings FILE HERE") |
| #! /usr/bin/swift | |
| // Douglas Hill, March 2020 | |
| /* | |
| Extracts the most common translations from Apple’s glossary files. | |
| This script helped with localisation for KeyboardKit (https://github.com/douglashill/KeyboardKit) by leveraging Apple’s existing translations. | |
| More detail in the article at https://douglashill.co/localisation-using-apples-glossaries/ |
| //The following file has 20 arrays, allSymbols[] has the title of every SFSymbol, and the remaining 19 arrays have the following categories: | |
| //communication, weather, objectsAndTools, devices, connectivity, transportation, human, nature, editing, textFormatting, media, keyboard, commerce, time, health, shapes, arrows, indicies, math | |
| private var allSymbols = ["0.circle", "00.circle", "0.circle.fill", "00.circle.fill", "0.square", "00.square", "0.square.fill", "00.square.fill", "1.circle", "01.circle", "1.circle.fill", "01.circle.fill", "1.magnifyingglass", "1.square", "01.square", "1.square.fill", "01.square.fill", "2.circle", "02.circle", "2.circle.fill", "02.circle.fill", "2.square", "02.square", "2.square.fill", "02.square.fill", "3.circle", "03.circle", "3.circle.fill", "03.circle.fill", "3.square", "03.square", "3.square.fill", "03.square.fill", "4.alt.circle", "4.alt.circle.fill", "4.alt.square", "4.alt.square.fill", "4.circle", "04.circle", "4.circle.fill", "04.circle.fill", "4.square", "04.square", "4 |
| # 1. Create 'ci_scripts' folder in your main project directory | |
| # 2. Create 'ci_post_xcodebuild.sh' inside of it | |
| # 3. Make it an executable by running 'chmod +x $ci_post_xcodebuild.sh' | |
| set -e # fails build if any command fails | |
| if [ ${CI_XCODEBUILD_EXIT_CODE} != 0 ] | |
| then | |
| exit 1 | |
| fi |