Skip to content
Discussion options

You must be logged in to vote

That's a good question 😅

In most libraries you would probably see a t translation functions.
But since typesafe-i18n can be used in multiple ways, I needed to have three different names so you would be able to immediately tell the difference bretween instances of i18nString, i18nObject and i18n in your code.
The first character that popped up in my mind was l (which probably stands for locale?).
Since it can be hard to tell the difference between

  • l (lovercase L) and
  • I (uppercase i)

I did choose to use L, resulting into L, LL and LLL for the names of those instances.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@swernerx
Comment options

@ivanhofer
Comment options

Answer selected by bivainis
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants