Comments (3)
In v 6.0.2
session support is switched off by default and pluralize
will use current context locale.
from telegraf-i18n.
What do you mean actual locale
?
from telegraf-i18n.
At the moment, the session locale value used as a parameter for pluralization function. Regardless of which yaml is actually used.
For example: if my bot contains only Russian locale (defaultLanguage: 'ru'
) and some user have 'en' session locale – in this case the rules of English pluralization will be applied to the ru.yaml
strings.
from telegraf-i18n.
Related Issues (20)
- [BUG] directory: path.resolve(__dirname, "locales") HOT 6
- match functions not work HOT 1
- Add parameters handler
- Performance: smart VM when not needed
- Type definitions are incorrect
- there is no way to force use a specific language HOT 1
- i18n.t is undefined HOT 3
- Handle exception when locales folder contains empty file
- How can I use it in groups? HOT 1
- ES6 match and reply functions support
- Nested templates HOT 1
- Suggestion: Add a method to get other translations from the same resource HOT 1
- Failed to compile template HOT 3
- Suggestion: Accept arrays in files
- Selected language not presisting in session HOT 2
- Enable fallback if no translation exists for current tag. HOT 1
- TypeError: Cannot read properties of undefined (reading 't') in WizardScene HOT 6
- Project dead ? HOT 4
- Latest Telegraf Support HOT 3
- @ HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from telegraf-i18n.