Vladislav Kolotvin
Vladislav Kolotvin
In some languages there are grammatical cases(https://en.wikipedia.org/wiki/Grammatical_case). This feature can help with this problem. Example in russian: Nominative case - У меня есть коров**ы**, свинь**и** и овц**ы**. (I have cows,...
Besides basic example for social networks > "Ann, Peter and other 5 other people liked your photo" as a game developer I'm stuck with localising complex quests descriptions. Example: >...
> Does the number of elements in a list vary? In other words, is it "cows, pigs and sheep" for some users and "cows and pigs" or just "cows" for...
Any flags
Есть ли планы добавить такую фичу?
@radoering I have an idea of solution/implementation. Installer gets 'develop' flag from lock file passed to him. See here: https://github.com/python-poetry/poetry/blob/a74d3a79028535baf48073c969d327978d87d6c9/src/poetry/installation/installer.py#L288 Lock file is generated by Locker. See here: https://github.com/python-poetry/poetry/blob/a74d3a79028535baf48073c969d327978d87d6c9/src/poetry/installation/installer.py#L261 Locker...
TypedData.createNativeObjects делает то, что нужно.
Всё таки этот метод не очень подходит. JsonDocument остаётся строкой. А Interval превращается в страшный `{"low":-790388736,"high":140,"unsigned":false}`. Как преобразовать Interval в нормальный тип? Подойдёт [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#Durations)
.toNumber() помог
В конечном итоге код выглядит так себе: `const durationMcs = typeof offer.duration === 'number' ? offer.duration : offer.duration.toNumber()` Может имеет смысл всё же возвращать Interval строкой в формате [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#Durations)?