338cab1660
In many languages there is more than one plural form of nouns and rules for choosing the correct one are often far more complex than in English. Luckily both react-i18next and Weblate provide built-in support for translating and selecting plural forms in accordance with grammatical rules of any given language. In order to enable plural forms `{count: n}` option is added to relevant `t()` calls. In translations files "_one" and "_other" suffix is added to English labels such that Weblate can detect which entries represent a set of plural forms and show appropriate language-specific form on the translation page. E.g. in Polish there are 2 plural forms and hence 3 resulting suffixes: "_one", "_few", "_many". Note on transition period: in the absence of expected suffixed variants react-i18next will use non-suffixed one (if present) so existing translations will continue to work just fine even if they happen to be grammatically imperfect. Translators can provide proper plural forms in once this change is merged and Weblate will then replace non-suffixed labels with the suffixed ones. |
||
---|---|---|
.github | ||
assets | ||
client | ||
cmd | ||
docs | ||
examples | ||
log | ||
scripts | ||
server | ||
test | ||
tools/fbsend | ||
user | ||
util | ||
web | ||
.gitignore | ||
.gitpod.yml | ||
.goreleaser.yml | ||
CODE_OF_CONDUCT.md | ||
docker-compose.yml | ||
Dockerfile | ||
go.mod | ||
go.sum | ||
LICENSE | ||
LICENSE.GPLv2 | ||
main.go | ||
Makefile | ||
mkdocs.yml | ||
README.md | ||
requirements.txt | ||
SECURITY.md |
ntfy.sh | Send push notifications to your phone or desktop via PUT/POST
ntfy (pronounced "notify") is a simple HTTP-based pub-sub notification service. With ntfy, you can send notifications to your phone or desktop via scripts from any computer, without having to sign up or pay any fees. If you'd like to run your own instance of the service, you can easily do so since ntfy is open source.
You can access the free version of ntfy at ntfy.sh. There is also an open source Android app available on Google Play or F-Droid, as well as an open source iOS app available on the App Store.
Documentation
Getting started | Android/iOS | API | Install / Self-hosting | Building
Chat / forum
There are a few ways to get in touch with me and/or the rest of the community. Feel free to use any of these methods. Whatever works best for you:
- Discord server - direct chat with the community
- Matrix room #ntfy (+ Matrix space) - same chat, bridged from Discord
- Reddit r/ntfy - asynchronous forum (new as of October 2022)
- GitHub issues - questions, features, bugs
- Email - reach me directly (I usually prefer the other methods)
Announcements / beta testers
For announcements of new releases and cutting-edge beta versions, please subscribe to the ntfy.sh/announcements topic. If you'd like to test the iOS app, join TestFlight. For Android betas, join Discord/Matrix (I'll eventually make a testing channel in Google Play).
Contributing
I welcome any and all contributions. Just create a PR or an issue. For larger features/ideas, please reach out on Discord/Matrix first to see if I'd accept them. To contribute code, check out the build instructions for the server and the Android app. Or, if you'd like to help translate 🇩🇪 🇺🇸 🇧🇬, you can start immediately in Hosted Weblate.
Sponsors
I have just very recently started accepting donations via GitHub Sponsors, and Liberapay. I would be humbled if you helped me carry the server and developer account costs. Even small donations are very much appreciated. A big fat Thank You to the folks already sponsoring ntfy:
I'd also like to thank JetBrains for providing their awesome IntelliJ IDEA to me for free, and DigitalOcean (referral link) for supporting the project:
Code of Conduct
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, caste, color, religion, or sexual identity and orientation.
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
Please be sure to read the complete Code of Conduct.
License
Made with ❤️ by Philipp C. Heckel.
The project is dual licensed under the Apache License 2.0 and the GPLv2 License.
Third party libraries and resources:
- github.com/urfave/cli (MIT) is used to drive the CLI
- Mixkit sounds (Mixkit Free License) are used as notification sounds
- Sounds from notificationsounds.com (Creative Commons Attribution) are used as notification sounds
- Roboto Font (Apache 2.0) is used as a font in everything web
- React (MIT) is used for the web app
- Material UI components (MIT) are used in the web app
- MUI dashboard template (MIT) was used as a basis for the web app
- Dexie.js (Apache 2.0) is used for web app persistence in IndexedDB
- GoReleaser (MIT) is used to create releases
- go-smtp (MIT) is used to receive e-mails
- stretchr/testify (MIT) is used for unit and integration tests
- github.com/mattn/go-sqlite3 (MIT) is used to provide the persistent message cache
- Firebase Admin SDK (Apache 2.0) is used to send FCM messages
- github/gemoji (MIT) is used for emoji support (specifically the emoji.json file)
- Lightbox with vanilla JS as a lightbox on the landing page
- HTTP middleware for gzip compression (MIT) is used for serving static files
- Regex for auto-linking (MIT) is used to highlight links (the library is not used)
- Statically linking go-sqlite3
- Linked tabs in mkdocs