| 12345678910111213141516171819 |
- import pathlib
- current = pathlib.Path(__file__).parent
- root = current.parent
- package = root / pathlib.Path("source")
- import sys
- sys.path.append(str(package))
- import cx_libtranslate
- sample = cx_libtranslate.translation("This is #{ sample } with #{ number }")
- print("Testing...")
- print("Result: " + str(sample))
- print("Formated: " + sample.format({
- "sample": "example",
- "number": 10
- }))
|