Skip to content

0.6.0

Pre-release
Pre-release

Choose a tag to compare

@Meldiron Meldiron released this 20 Sep 06:01
9de0523

⚠️ This release includes breaking changes! ⚠️

  • We adjusted the second parameter of getText - $placeholders for achieving more consistency and better support from localizing software. Before, you used your placeholder like Hello {name}, now it's Hello {{name}}. More examples:
// BEFORE.json

{
  'age: 'You are {age} years old',
  'fullName': 'You are logged in as {name} {surname}.',
  'post-info': 'Your post has {likeAmount} likes and {commentAmount} comments.'
}
// AFTER.json

{
  'age: 'You are {{age}} years old',
  'fullName': 'You are logged in as {{name} {{surname}}.',
  'post-info': 'Your post has {{likeAmount}} likes and {{commentAmount}} comments.'
}