akkoma/lib/pleroma
Tusooa Zhu ef73f61b07 Fallback to a variant if the language in general is not supported
For an example, here, zh is not supported, but zh_Hans and zh_Hant
are. If the user asks for zh, we should choose a variant for them
instead of fallbacking to default.

Some browsers (e.g. Firefox) does not allow users to customize
their language codes. For example, there is no zh-Hans, but only
zh, zh-CN, zh-TW, zh-HK, etc. This provides a workaround for
those users suffering from bad design decisions.
2022-06-29 20:47:10 +01:00
..
activity Make activity search properly use GIN indexes 2021-08-28 18:26:04 +02:00
captcha
chat
config Purge gopher frontend 2022-06-27 17:31:16 +01:00
conversation Add API endpoint to remove a conversation 2021-02-15 21:48:13 +04:00
docs
ecto_type recipients fixes/hardening for CreateGenericValidator 2021-04-05 19:19:11 +02:00
elasticsearch fix emoji tests 2022-06-11 14:08:54 +01:00
emails Send emails i18n'd using backend-stored user language 2022-06-29 20:45:19 +01:00
emoji emoji/loader.ex: be more verbose about which emoji pack config is loading now 2021-12-17 14:15:44 +00:00
gun CI: Bump lint stage to elixir-1.12 2021-10-06 08:11:05 +02:00
helpers
http use tls1.3 2022-06-07 12:24:40 +01:00
instances Add Instance.delete_users_and_activities/1 to delete all content from a remote instance 2021-07-17 14:06:35 -05:00
mfa
migration_helper
migrators [#3213] Code formatting fix. 2021-03-12 12:25:18 +03:00
object Merge branch 'features/validators-note' into 'develop' 2021-06-01 01:51:38 +00:00
password
reverse_proxy Dirty hack to make mediaproxy functional by relying on Hackney for that part 2021-12-16 11:36:58 -06:00
search fix all tests 2022-06-11 16:14:22 +01:00
telemetry Merge branch 'log-slow-queries' into 'develop' 2021-12-27 15:41:06 +00:00
tesla/middleware
tests Fix compile cycle in Pleroma.Tests.AuthTestController 2021-06-09 13:30:19 -05:00
upload Support metadata for video files too 2021-06-08 12:54:09 -05:00
uploaders Remove deps from Uploader behaviour 2021-06-01 14:19:45 -05:00
user MastoAPI: Profile directory 2021-12-26 02:35:17 +00:00
web Fallback to a variant if the language in general is not supported 2022-06-29 20:47:10 +01:00
workers Allow for embedding object data in publish 2022-06-25 18:41:26 +01:00
activity.ex make linter happy 2021-12-12 17:35:02 +00:00
application.ex Purge gopher frontend 2022-06-27 17:31:16 +01:00
application_requirements.ex Support metadata for video files too 2021-06-08 12:54:09 -05:00
bookmark.ex
caching.ex
captcha.ex
chat.ex
clippy.ex
config.ex Merge remote-tracking branch 'remotes/origin/develop' into feature/object-hashtags-rework 2021-02-23 13:58:35 +03:00
config_db.ex Revert guards on string_to_elixir_types/1, remove unnecessary assignment in test 2021-04-14 09:39:57 -05:00
constants.ex Deprecate Pleroma.Web.base_url/0 2021-05-31 16:48:03 -05:00
conversation.ex Add API endpoint to remove a conversation 2021-02-15 21:48:13 +04:00
counter_cache.ex
data_migration.ex [#3213] HashtagsTableMigrator state management refactoring & improvements (proper stats serialization etc.). 2021-02-16 23:14:15 +03:00
delivery.ex
ecto_enums.ex v2 Suggestions: dismiss a suggestion 2021-11-26 20:19:29 -06:00
emoji-test.txt Add unicode 14 support 2022-06-29 20:43:41 +01:00
emoji.ex Bugfix: standardise scheme for emoji reactions 2022-06-25 15:27:46 +01:00
filter.ex support for expires_in/expires_at in filters 2021-01-26 08:27:45 +03:00
following_relationship.ex
formatter.ex Merge remote-tracking branch 'pleroma/develop' into cycles-base-url 2021-05-31 16:49:46 -05:00
frontend.ex format everything 2022-06-15 18:22:30 +01:00
gun.ex Gun: make Gun.API a runtime dep 2021-05-29 10:53:30 -05:00
hashtag.ex add timestamp 2021-12-16 15:58:56 +00:00
healthcheck.ex
html.ex Break out activity-specific HTML functions into Pleroma.Activity.HTML 2021-05-29 12:29:11 -05:00
http.ex mix format 2022-06-11 16:14:31 +01:00
instances.ex Switch to runtime deps in Pleroma.Instances 2021-06-08 18:03:34 -05:00
job_queue_monitor.ex
jwt.ex
keys.ex
list.ex ListController: Fix being unable to add / remove users. 2021-01-18 16:28:36 +01:00
logging.ex
maintenance.ex Fix typo 2021-10-06 10:49:25 -05:00
maps.ex utils: Fix maybe_splice_recipient when "object" isn’t a map 2021-04-05 19:19:12 +02:00
marker.ex
mfa.ex
moderation_log.ex Merge branch 'v2-suggestions' into 'develop' 2021-12-19 17:31:17 +00:00
notification.ex Delete report notifs when demoting from superuser 2022-06-29 20:43:41 +01:00
object.ex Merge remote-tracking branch 'pleroma/develop' into cycles-base-url 2021-05-31 16:49:46 -05:00
object_tombstone.ex
otp_version.ex
pagination.ex [#3213] Performance optimization of filtering by hashtags ("any" condition). 2021-03-07 11:33:21 +03:00
password_reset_token.ex
registration.ex
release_tasks.ex
repo.ex Upgrade Ecto to v3.6.2, remove deprecated ecto_explain 2021-06-23 13:22:32 -05:00
report_note.ex
reverse_proxy.ex ReverseProxy: create Client.Wrapper to call client from config 2021-06-04 21:12:24 -05:00
scheduled_activity.ex
search.ex make search provider configurable 2021-12-12 17:35:35 +00:00
signature.ex
stats.ex don't use continue in Stats init for test env 2021-02-27 09:39:15 +03:00
thread_mute.ex
upload.ex Merge remote-tracking branch 'pleroma/develop' into cycles-base-url 2021-05-31 16:49:46 -05:00
user.ex Allow user to register with custom language 2022-06-29 20:46:51 +01:00
user_invite_token.ex
user_note.ex MastoAPI: Add user notes on accounts 2021-11-21 16:56:26 +01:00
user_relationship.ex
utils.ex Cleanup and ensure we obey custom Repo timeout 2021-04-22 10:15:50 -05:00
web.ex Refactor skipped plugs into Pleroma.Web functions 2021-06-08 19:15:04 -05:00
xml_builder.ex