Tag nrho cov ntaub ntawv siv lub Name.<sourceLocale>.<ext> npe convention.
.resx
Kawm ntxiv XML-based .NET cov ntaub ntawv peev txheej. Txhais cov ntawv sab hauv ntawm txhua lub <data><value> node, khaws cov lus thiab metadata.
<?xml version="1.0" encoding="utf-8"?><root> <data name="Greeting" xml:space="preserve"> <value>Hello, world!</value> <comment>Shown on the home page</comment> </data> <data name="Goodbye" xml:space="preserve"> <value>See you later</value> </data></root>.xliff
Kawm ntxiv OASIS XLIFF 2.0 cov ntaub ntawv. Txhais txhua <source> thiab sau qhov tshwm sim rau hauv qhov sib <target>, teeb trgLang rau lub zos.
<?xml version="1.0" encoding="utf-8"?><xliff xmlns="urn:oasis:names:tc:xliff:document:2.0" version="2.0" srcLang="en"> <file id="ui"> <unit id="greeting"> <segment> <source>Hello, world!</source> </segment> </unit> </file></xliff>.po
Kawm ntxiv GNU gettext Portable Object ntaub ntawv. Txhais txhua msgid / msgid_plural ua msgstr / msgstr[n] ntawv.
msgid ""msgstr """Content-Type: text/plain; charset=UTF-8\n"
msgid "Hello, world!"msgstr ""
msgid "%d apple"msgid_plural "%d apples"msgstr[0] ""msgstr[1] "".json
Kawm ntxiv Arbitrary JSON ntaub ntawv. Cov khoom ua zes yog flattened nrog lub [--] delimiter rau kev txhais lus, tom qab ntawd rov ua zes ntawm cov zis. Dotted yuam sij ("unit.dotted.key") yog khaws cia verbatim.
{ "app": { "title": "Resource Translator", "tagline": "Localize your repo on every commit" }, "buttons": { "save": "Save", "cancel": "Cancel" }}.ini
Kawm ntxiv Cov ntaub ntawv yooj yim key=value (Win32-style INI lossis txhua tiaj tiaj config). Tshooj headers thiab cov lus tau khaws cia.
# Display strings[ui]greeting=Hello, world!goodbye=See you later
[errors]not_found=The resource you requested was not found..restext
Kawm ntxiv Microsoft MUI cov ntawv nyeem cov peev txheej — tiaj tus key=value khub siv los ua tus khub ntawv .resx.
Greeting=Hello, world!Goodbye=See you laterNotFound=The resource you requested was not found.Round-trip guarantees
Cov ntawv xeem suite txheeb xyuas byte-rau-byte round-tripping rau cov neeg sawv cev fixtures ntawm txhua hom ntawv. Yog hais tias ib hom ntawv quirk tawg round-tripping nyob rau hauv koj codebase, thov qhib ib qho teeb meem nrog ib tug tsawg kawg nkaus qauv.