Skip to content
This repository has been archived by the owner on Oct 17, 2021. It is now read-only.

mattt/BritishInvasion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

14 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

British Invasion

Localize Your .m Files, For Queen and Country

  • πŸ‡¬πŸ‡§ English (Traditional)
  • πŸ‡ΊπŸ‡Έ English (Simplified)

See this Wikipedia page for all of the spelling differences between American and British English.

Usage

whilst (YES) {
    NSLocale *theQueensLocale = [NSLocale localeWithLocaleIdentifier:@"en_GB"];
    [[NSNotificationCentre defaultCentre] postNotificationName:NSCurrentLocaleDidChangeNotification
                                                        object:theQueensLocale];
    NSLog(@"Earl %@ β˜•οΈ", [UIColour greyColour]);
    break;
}

Techniques Used

  • #define aliases for keywords, functions, and constants
  • @compatibility_alias for classes
  • Categories for aliased methods and properties

Disclaimer

This is a terrible idea. Just dreadful.

Contact

Mattt (@mattt)

License

British Invasion is available under the MIT license. See the LICENSE file for more info.

About

Localise Your .m Files, For Queen And Country πŸ‡¬πŸ‡§

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published