Apple's unicode keyboard layout versions location

Solution 1:

Computers normally use a single encoding system, ISO 10646/Unicode, that covers all languages at once. It currently gives each of over 100,000 characters a unique idenfier. All hardware keyboards are essentially the same as regards the codes sent to the computer, only the printing on the keys differs. Software keyboard layouts and input methods in MacOS provide mappings of the standard hardware keyboard output codes to the Unicode codepoints that reflect the requirements of any particular language, while fonts translate those codepoints into glyphs on the screen.

This page provides graphics of some of the different language mappings which you can select in MacOS via system preferences/keyboard/input sources. These can be applied to any hardware keyboard and all use Unicode encoding.

These software mapping files are found in system/libary/keyboard layouts and system/library/input methods on a Mac. Users can also create custom mappings with apps like Ukelele and Karabiner and other methods.

But I don’t offhand think such mapping files would play any role in a translation system of the sort you are describing.