-
Notifications
You must be signed in to change notification settings - Fork 170
Add Arabic locale #571
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
m-mohr
merged 11 commits into
radiantearth:main
from
randa-11295:git-checkout--b-feature/add-arabic
Feb 24, 2025
Merged
Add Arabic locale #571
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
60727b3
handle change language to arabic
randa-11295 127121e
update ar improt
randa-11295 ce5d81b
translate assets
randa-11295 343c73d
update translate
randa-11295 d1332e6
update ar translate
randa-11295 2edb9b2
update ar translate
randa-11295 b0502ee
update title
randa-11295 a85f584
emove the comments from datepicker
randa-11295 bc6c75e
emove the comments from duration
randa-11295 1199e12
update ar translate
randa-11295 32dc969
add Arabic translate to fields.json
randa-11295 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ module.exports = { | |
fallbackLocale: "en", | ||
supportedLocales: [ | ||
"de", | ||
"ar", | ||
// "de-CH", | ||
"es", | ||
"en", | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"native": "العربية", | ||
"global": "Arabic" | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"authConfig": { | ||
"description": "" | ||
}, | ||
"fields": { | ||
|
||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
const format = 'YYYY-MM-DD'; | ||
const locale = import('vue2-datepicker/locale/ar'); | ||
(await locale).default.formatLocale.firstDayOfWeek = 1; | ||
export default {format, locale}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import Utils from '../../utils'; | ||
export default Utils.mergeDeep( | ||
{ | ||
fields: require('./fields.json'), | ||
}, | ||
require('./texts.json'), | ||
require('./custom.json') | ||
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import { ar as locale } from '@musement/iso-duration'; | ||
export default locale; |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import I18N from '@radiantearth/stac-fields/I18N'; | ||
|
||
export default function run(/*locale*/) { | ||
const defaults = I18N.getDefaults(); | ||
// We want the globally recommended number format with spaces as thousands separator | ||
// and a dot as decimal separator, which is available in e.g. fr-FR | ||
I18N.numberFormatter = new Intl.NumberFormat("fr-FR", defaults.numberFormatterOptions); | ||
// We want ISO formatting for the date, which is available in e.g. sv-SE | ||
I18N.dateFormatter = new Intl.DateTimeFormat("sv-SE", defaults.dateFormatterOptions); | ||
// We want ISO formatting for the date and time, which is available in e.g. sv-SE | ||
I18N.dateTimeFormatter = new Intl.DateTimeFormat("sv-SE", { | ||
day: 'numeric', | ||
month: 'numeric', | ||
year: 'numeric', | ||
hour: 'numeric', | ||
minute: 'numeric', | ||
second: 'numeric', | ||
timeZone: "UTC", | ||
timeZoneName: "short" | ||
}); | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.