@sitevision/api 2.0.0-alpha.1 → 2.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +8 -0
- package/package.json +1 -1
- package/server/AliasUtil/index.d.ts +13 -11
- package/server/ArchiveUtil/index.d.ts +45 -43
- package/server/ArraysInstance/index.d.ts +1667 -1808
- package/server/ArticleUtil/index.d.ts +294 -226
- package/server/AuthenticationUtil/index.d.ts +73 -85
- package/server/BookmarkUtil/index.d.ts +76 -81
- package/server/BuddyIconRenderer/index.d.ts +124 -132
- package/server/BuddyIconRenderer.BuddyIconSize/index.d.ts +41 -0
- package/server/BuddyIconRenderer.BuddyIconSize/index.js +25 -0
- package/server/ClientUtil/index.d.ts +11 -9
- package/server/CollaborationFactory/index.d.ts +37 -40
- package/server/CollaborationGroupFolderUtil/index.d.ts +30 -28
- package/server/CollaborationGroupState/index.d.ts +27 -0
- package/server/CollaborationGroupState/index.js +11 -0
- package/server/CollaborationGroupTemplateUtil/index.d.ts +48 -50
- package/server/CollaborationGroupType/index.d.ts +28 -0
- package/server/CollaborationGroupType/index.js +12 -0
- package/server/CollaborationGroupUtil/index.d.ts +86 -82
- package/server/CollectionsInstance/index.d.ts +642 -705
- package/server/ColorUtil/index.d.ts +36 -37
- package/server/CompoundAndFilterBuilder/index.d.ts +31 -29
- package/server/CompoundComparatorBuilder/index.d.ts +35 -33
- package/server/CompoundOrFilterBuilder/index.d.ts +31 -29
- package/server/ContentNodeUtil/index.d.ts +36 -34
- package/server/CurrencyFactory/index.d.ts +72 -70
- package/server/DateUtil/index.d.ts +132 -142
- package/server/DecorationUtil/index.d.ts +13 -11
- package/server/DeviceUtil/index.d.ts +21 -19
- package/server/DimensionMode/index.d.ts +17 -0
- package/server/DimensionMode/index.js +12 -0
- package/server/DirectoryUtil/index.d.ts +90 -88
- package/server/DocType/index.d.ts +30 -0
- package/server/DocType/index.js +14 -0
- package/server/DocTypeUtil/index.d.ts +129 -135
- package/server/EndecUtil/index.d.ts +330 -347
- package/server/ExtendedDismaxParserBuilder/index.d.ts +156 -170
- package/server/FileIconRenderer/index.d.ts +153 -172
- package/server/FileUtil/index.d.ts +274 -300
- package/server/FilterBuilder/index.d.ts +42 -40
- package/server/FolderUtil/index.d.ts +93 -94
- package/server/FontUtil/index.d.ts +36 -37
- package/server/FormatterBuilderFactory/index.d.ts +76 -84
- package/server/HighlightBuilder/index.d.ts +79 -86
- package/server/IconUtil/index.d.ts +27 -25
- package/server/ImageLinkRenderer/index.d.ts +34 -32
- package/server/ImageRenderer/index.d.ts +343 -379
- package/server/ImageUtil/index.d.ts +247 -265
- package/server/IndexUtil/index.d.ts +40 -37
- package/server/IndexUtil.IndexType/index.d.ts +29 -0
- package/server/IndexUtil.IndexType/index.js +13 -0
- package/server/IndexingUtil/index.d.ts +69 -47
- package/server/InstanceCreatorUtil/index.d.ts +421 -457
- package/server/InstanceTypeUtil/index.d.ts +168 -189
- package/server/JwtUtil/index.d.ts +131 -129
- package/server/LandingPageUtil/index.d.ts +84 -87
- package/server/LandingPageUtil/index.js +1 -0
- package/server/LinkPageUtil/index.d.ts +297 -251
- package/server/LinkRenderer/index.d.ts +651 -715
- package/server/LinkTargetBuilder/index.d.ts +69 -77
- package/server/LinkValueBuilder/index.d.ts +70 -77
- package/server/ListWrapper/index.d.ts +82 -91
- package/server/LocaleUtil/index.d.ts +382 -394
- package/server/LogUtil/index.d.ts +119 -128
- package/server/MailBuilder/index.d.ts +109 -124
- package/server/MailUtil/index.d.ts +58 -63
- package/server/MathInstance/index.d.ts +625 -657
- package/server/MessageDigesterFactory/index.d.ts +30 -28
- package/server/MetadataDefinitionUtil/index.d.ts +79 -83
- package/server/MetadataUtil/index.d.ts +322 -346
- package/server/MimeTypeUtil/index.d.ts +209 -215
- package/server/MonitorBuilder/index.d.ts +20 -20
- package/server/NodeComparatorUtil/index.d.ts +215 -225
- package/server/NodeFactoryUtil/index.d.ts +18 -16
- package/server/NodeFilterUtil/index.d.ts +652 -739
- package/server/NodeIteratorUtil/index.d.ts +214 -229
- package/server/NodeResolverUtil/index.d.ts +400 -406
- package/server/NodeTreeUtil/index.d.ts +214 -229
- package/server/NodeTypeUtil/index.d.ts +1432 -548
- package/server/OfflineVersionPropertyUtil/index.d.ts +8 -6
- package/server/OnlineVersionPropertyUtil/index.d.ts +8 -6
- package/server/OutputUtil/index.d.ts +385 -380
- package/server/PageUtil/index.d.ts +266 -188
- package/server/PermissionUtil/index.d.ts +393 -430
- package/server/PermissionUtil.Permission/index.d.ts +54 -0
- package/server/PermissionUtil.Permission/index.js +38 -0
- package/server/PortletContextUtil/index.d.ts +112 -107
- package/server/PortletUtil/index.d.ts +32 -22
- package/server/PrincipalUtil/index.d.ts +35 -33
- package/server/Properties/index.d.ts +69 -76
- package/server/PropertyUtil/index.d.ts +1422 -1464
- package/server/PublishingUtil/index.d.ts +248 -249
- package/server/QueryStringUtil/index.d.ts +404 -415
- package/server/RedirectUtil/index.d.ts +64 -68
- package/server/RelatedValueBuilder/index.d.ts +45 -43
- package/server/Requester/index.d.ts +125 -125
- package/server/ResourceLocatorUtil/index.d.ts +436 -476
- package/server/RestApi/index.d.ts +158 -138
- package/server/RestAppInvokerFactory/index.d.ts +28 -26
- package/server/RoleAssignmentBuilder/index.d.ts +39 -37
- package/server/RoleMatcherBuilder/index.d.ts +39 -37
- package/server/RoleUtil/index.d.ts +35 -37
- package/server/ScriptUtil/index.d.ts +458 -495
- package/server/SearchFactory/index.d.ts +90 -105
- package/server/SearchUtil/index.d.ts +75 -73
- package/server/SearcherBuilder/index.d.ts +117 -124
- package/server/Session/index.d.ts +261 -1103
- package/server/Session/index.js +1 -20
- package/server/SimpleUserUtil/index.d.ts +28 -29
- package/server/SiteCookieUtil/index.d.ts +152 -175
- package/server/SortBuilder/index.d.ts +27 -25
- package/server/SourceSetMode/index.d.ts +12 -0
- package/server/SourceSetMode/index.js +12 -0
- package/server/SpellCheckBuilder/index.d.ts +30 -30
- package/server/StandardParserBuilder/index.d.ts +36 -34
- package/server/StructureUtil/index.d.ts +85 -83
- package/server/SubscriberUtil/index.d.ts +60 -67
- package/server/SubscriptionUtil/index.d.ts +123 -130
- package/server/SystemUserUtil/index.d.ts +148 -146
- package/server/TagUtil/index.d.ts +115 -120
- package/server/TemplateUtil/index.d.ts +115 -120
- package/server/TemporaryFileNodeBuilder/index.d.ts +32 -30
- package/server/TemporaryNodeBuilder/index.d.ts +139 -177
- package/server/TextModuleRendererBuilder/index.d.ts +22 -20
- package/server/TimestampUtil/index.d.ts +103 -117
- package/server/TranslationUtil/index.d.ts +98 -104
- package/server/TrashcanUtil/index.d.ts +114 -117
- package/server/UserDataUtil/index.d.ts +110 -111
- package/server/UserFactory/index.d.ts +47 -54
- package/server/UserFieldRenderer/index.d.ts +120 -128
- package/server/UserIdentityUtil/index.d.ts +38 -36
- package/server/UserUtil/index.d.ts +32 -30
- package/server/Utils/index.d.ts +634 -723
- package/server/VelocityRenderer/index.d.ts +96 -94
- package/server/VersionUtil/index.d.ts +25 -9
- package/server/WebContentUtil/index.d.ts +277 -284
- package/server/WebResourceFactory/index.d.ts +41 -46
- package/server/XSLTUtil/index.d.ts +34 -32
- package/server/XmlParserUtil/index.d.ts +50 -48
- package/types/javax/jcr/Binary/index.d.ts +3 -21
- package/types/javax/jcr/Binary/index.js +0 -1
- package/types/javax/jcr/Credentials/index.d.ts +3 -1
- package/types/javax/jcr/ImportUUIDBehavior/index.d.ts +27 -1
- package/types/javax/jcr/Item/index.d.ts +6 -119
- package/types/javax/jcr/Item/index.js +0 -6
- package/types/javax/jcr/ItemVisitor/index.d.ts +5 -3
- package/types/javax/jcr/NamespaceRegistry/index.d.ts +69 -43
- package/types/javax/jcr/NamespaceRegistry/index.js +0 -2
- package/types/javax/jcr/Node/index.d.ts +37 -1506
- package/types/javax/jcr/Node/index.js +1 -34
- package/types/javax/jcr/NodeIterator/index.d.ts +5 -3
- package/types/javax/jcr/Property/index.d.ts +494 -494
- package/types/javax/jcr/Property/index.js +0 -5
- package/types/javax/jcr/PropertyIterator/index.d.ts +5 -3
- package/types/javax/jcr/RangeIterator/index.d.ts +2 -42
- package/types/javax/jcr/RangeIterator/index.js +1 -5
- package/types/javax/jcr/Repository/index.d.ts +465 -263
- package/types/javax/jcr/Repository/index.js +0 -4
- package/types/javax/jcr/RepositoryFactory/index.d.ts +4 -2
- package/types/javax/jcr/Value/index.d.ts +4 -31
- package/types/javax/jcr/Value/index.js +0 -2
- package/types/javax/jcr/ValueFactory/index.d.ts +6 -74
- package/types/javax/jcr/ValueFactory/index.js +1 -2
- package/types/javax/jcr/Workspace/index.d.ts +103 -577
- package/types/javax/jcr/Workspace/index.js +1 -12
- package/types/javax/jcr/lock/Lock/index.d.ts +4 -2
- package/types/javax/jcr/lock/LockManager/index.d.ts +4 -2
- package/types/javax/jcr/nodetype/ItemDefinition/index.d.ts +4 -105
- package/types/javax/jcr/nodetype/ItemDefinition/index.js +0 -5
- package/types/javax/jcr/nodetype/NodeDefinition/index.d.ts +5 -3
- package/types/javax/jcr/nodetype/NodeDefinitionTemplate/index.d.ts +4 -2
- package/types/javax/jcr/nodetype/NodeType/index.d.ts +262 -269
- package/types/javax/jcr/nodetype/NodeType/index.js +1 -12
- package/types/javax/jcr/nodetype/NodeTypeDefinition/index.d.ts +5 -107
- package/types/javax/jcr/nodetype/NodeTypeDefinition/index.js +1 -7
- package/types/javax/jcr/nodetype/NodeTypeIterator/index.d.ts +5 -3
- package/types/javax/jcr/nodetype/NodeTypeManager/index.d.ts +9 -130
- package/types/javax/jcr/nodetype/NodeTypeManager/index.js +1 -8
- package/types/javax/jcr/nodetype/NodeTypeTemplate/index.d.ts +4 -2
- package/types/javax/jcr/nodetype/PropertyDefinition/index.d.ts +5 -272
- package/types/javax/jcr/nodetype/PropertyDefinition/index.js +1 -7
- package/types/javax/jcr/nodetype/PropertyDefinitionTemplate/index.d.ts +5 -3
- package/types/javax/jcr/observation/Event/index.d.ts +85 -42
- package/types/javax/jcr/observation/EventIterator/index.d.ts +5 -3
- package/types/javax/jcr/observation/EventJournal/index.d.ts +4 -2
- package/types/javax/jcr/observation/EventListener/index.d.ts +4 -2
- package/types/javax/jcr/observation/EventListenerIterator/index.d.ts +5 -3
- package/types/javax/jcr/observation/ObservationManager/index.d.ts +6 -4
- package/types/javax/jcr/query/Query/index.d.ts +35 -12
- package/types/javax/jcr/query/QueryManager/index.d.ts +6 -4
- package/types/javax/jcr/query/QueryResult/index.d.ts +5 -3
- package/types/javax/jcr/query/Row/index.d.ts +5 -3
- package/types/javax/jcr/query/RowIterator/index.d.ts +5 -3
- package/types/javax/jcr/query/qom/And/index.d.ts +4 -2
- package/types/javax/jcr/query/qom/BindVariableValue/index.d.ts +4 -2
- package/types/javax/jcr/query/qom/ChildNode/index.d.ts +4 -2
- package/types/javax/jcr/query/qom/ChildNodeJoinCondition/index.d.ts +4 -2
- package/types/javax/jcr/query/qom/Column/index.d.ts +3 -1
- package/types/javax/jcr/query/qom/Comparison/index.d.ts +6 -4
- package/types/javax/jcr/query/qom/Constraint/index.d.ts +3 -1
- package/types/javax/jcr/query/qom/DescendantNode/index.d.ts +4 -2
- package/types/javax/jcr/query/qom/DescendantNodeJoinCondition/index.d.ts +4 -2
- package/types/javax/jcr/query/qom/DynamicOperand/index.d.ts +4 -2
- package/types/javax/jcr/query/qom/EquiJoinCondition/index.d.ts +4 -2
- package/types/javax/jcr/query/qom/FullTextSearch/index.d.ts +5 -3
- package/types/javax/jcr/query/qom/FullTextSearchScore/index.d.ts +4 -2
- package/types/javax/jcr/query/qom/Join/index.d.ts +5 -3
- package/types/javax/jcr/query/qom/JoinCondition/index.d.ts +3 -1
- package/types/javax/jcr/query/qom/Length/index.d.ts +5 -3
- package/types/javax/jcr/query/qom/Literal/index.d.ts +5 -3
- package/types/javax/jcr/query/qom/LowerCase/index.d.ts +4 -2
- package/types/javax/jcr/query/qom/NodeLocalName/index.d.ts +4 -2
- package/types/javax/jcr/query/qom/NodeName/index.d.ts +4 -2
- package/types/javax/jcr/query/qom/Not/index.d.ts +4 -2
- package/types/javax/jcr/query/qom/Operand/index.d.ts +3 -1
- package/types/javax/jcr/query/qom/Or/index.d.ts +4 -2
- package/types/javax/jcr/query/qom/Ordering/index.d.ts +4 -2
- package/types/javax/jcr/query/qom/PropertyExistence/index.d.ts +4 -2
- package/types/javax/jcr/query/qom/PropertyValue/index.d.ts +4 -2
- package/types/javax/jcr/query/qom/QueryObjectModel/index.d.ts +8 -6
- package/types/javax/jcr/query/qom/QueryObjectModelConstants/index.d.ts +76 -2
- package/types/javax/jcr/query/qom/QueryObjectModelFactory/index.d.ts +37 -35
- package/types/javax/jcr/query/qom/SameNode/index.d.ts +4 -2
- package/types/javax/jcr/query/qom/SameNodeJoinCondition/index.d.ts +4 -2
- package/types/javax/jcr/query/qom/Selector/index.d.ts +4 -2
- package/types/javax/jcr/query/qom/Source/index.d.ts +3 -1
- package/types/javax/jcr/query/qom/StaticOperand/index.d.ts +4 -2
- package/types/javax/jcr/query/qom/UpperCase/index.d.ts +4 -2
- package/types/javax/jcr/retention/Hold/index.d.ts +3 -1
- package/types/javax/jcr/retention/RetentionManager/index.d.ts +5 -3
- package/types/javax/jcr/retention/RetentionPolicy/index.d.ts +3 -1
- package/types/javax/jcr/security/AccessControlEntry/index.d.ts +4 -2
- package/types/javax/jcr/security/AccessControlList/index.d.ts +6 -4
- package/types/javax/jcr/security/AccessControlManager/index.d.ts +6 -4
- package/types/javax/jcr/security/AccessControlPolicy/index.d.ts +3 -1
- package/types/javax/jcr/security/AccessControlPolicyIterator/index.d.ts +5 -3
- package/types/javax/jcr/security/NamedAccessControlPolicy/index.d.ts +4 -2
- package/types/javax/jcr/security/Privilege/index.d.ts +130 -44
- package/types/javax/jcr/version/Version/index.d.ts +5 -3
- package/types/javax/jcr/version/VersionHistory/index.d.ts +7 -5
- package/types/javax/jcr/version/VersionIterator/index.d.ts +5 -3
- package/types/javax/jcr/version/VersionManager/index.d.ts +7 -5
- package/types/senselogic/sitevision/api/base/Builder/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/base/Filter/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/base/FilterSplit/index.d.ts +4 -2
- package/types/senselogic/sitevision/api/base/Loadable/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/base/Requireable/ScriptEngine/index.d.ts +9 -0
- package/types/senselogic/sitevision/api/base/Requireable/ScriptEngine/index.js +11 -0
- package/types/senselogic/sitevision/api/base/Resolver/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/base/Wrapper/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/collaboration/CollaborationGroupWrapper/index.d.ts +13 -7
- package/types/senselogic/sitevision/api/format/NumericFormatter/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/format/NumericFormatterBuilder/index.d.ts +5 -3
- package/types/senselogic/sitevision/api/i18n/Currency/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/link/CustomLinkProcessor/index.d.ts +5 -3
- package/types/senselogic/sitevision/api/link/CustomLinkRenderData/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/mail/Mail/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/message/MessageTextLinker/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/metadata/value/LinkValue/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/metadata/value/RelatedValue/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/property/VersionedPropertyUtil/index.d.ts +4 -2
- package/types/senselogic/sitevision/api/render/BuddyIconRenderer.BuddyIconInfo/index.d.ts +51 -0
- package/types/senselogic/sitevision/api/render/BuddyIconRenderer.BuddyIconInfo/index.js +12 -0
- package/types/senselogic/sitevision/api/render/ImageScaler/index.d.ts +4 -2
- package/types/senselogic/sitevision/api/render/TextModuleRenderer/index.d.ts +4 -2
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.ArticleUtilConstants/index.d.ts +85 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.ArticleUtilConstants/index.js +21 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.ExceptionSuppressingProxyConstants/index.d.ts +31 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.ExceptionSuppressingProxyConstants/index.js +12 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.IndexingUtilConstants/index.d.ts +31 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.IndexingUtilConstants/index.js +12 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.LinkPageUtilConstants/index.d.ts +67 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.LinkPageUtilConstants/index.js +18 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.MathInstanceConstants/index.d.ts +25 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.MathInstanceConstants/index.js +11 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.MimeTypeUtilConstants/index.d.ts +19 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.MimeTypeUtilConstants/index.js +10 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.NodeTypeUtilConstants/index.d.ts +1243 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.NodeTypeUtilConstants/index.js +189 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.OutputUtilConstants/index.d.ts +31 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.OutputUtilConstants/index.js +12 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.PageUtilConstants/index.d.ts +91 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.PageUtilConstants/index.js +22 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.PortletContextUtilConstants/index.d.ts +27 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.PortletContextUtilConstants/index.js +11 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.PortletUtilConstants/index.d.ts +19 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.PortletUtilConstants/index.js +10 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.QueryStringUtilConstants/index.d.ts +19 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.QueryStringUtilConstants/index.js +10 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.SearchHitConstants/index.d.ts +25 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.SearchHitConstants/index.js +11 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.SearchResultConstants/index.d.ts +37 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.SearchResultConstants/index.js +13 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.VersionUtilConstants/index.d.ts +25 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.VersionUtilConstants/index.js +11 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityContext/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/render/velocity/VelocityEvaluator/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/script/RequesterChainable/index.d.ts +4 -2
- package/types/senselogic/sitevision/api/script/app/RestAppInvoker/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/script/factory/TypedArgument/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/script/proxy/ExceptionSuppressingCollection/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/script/proxy/ExceptionSuppressingIterator/index.d.ts +4 -2
- package/types/senselogic/sitevision/api/script/proxy/ExceptionSuppressingProxy/index.d.ts +24 -2
- package/types/senselogic/sitevision/api/search/SearchFieldUtil/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/search/SearchHighlighter/index.d.ts +4 -2
- package/types/senselogic/sitevision/api/search/SearchHit/index.d.ts +19 -3
- package/types/senselogic/sitevision/api/search/SearchResult/index.d.ts +31 -7
- package/types/senselogic/sitevision/api/search/facet/SearchFacetField/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/search/facet/SearchFacetValue/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/search/searcher/Searcher/index.d.ts +4 -2
- package/types/senselogic/sitevision/api/search/searcher/component/Filter/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/search/searcher/component/Highlight/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/search/searcher/component/Monitor/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/search/searcher/component/Parser/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/search/searcher/component/Sort/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/search/searcher/component/SpellCheck/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/search/sort/CustomSort/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/search/suggestion/SearchSuggestion/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/security/DirectoryAttributes/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/security/MessageDigester/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/security/RoleAssignment/index.d.ts +4 -2
- package/types/senselogic/sitevision/api/security/RoleMatcher/index.d.ts +4 -2
- package/types/senselogic/sitevision/api/security/SecretStore/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/security/UserUtil/index.d.ts +4 -2
- package/types/senselogic/sitevision/api/security/jaas/filter/AuthenticationFilter/index.d.ts +35 -3
- package/types/senselogic/sitevision/api/security/jaas/filter/AuthenticationFilterChain/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/user/UserIdentityWrapper/index.d.ts +5 -3
- package/types/senselogic/sitevision/api/webresource/LinkTarget/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/xml/XmlElement/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/xml/XmlElementHandler/index.d.ts +4 -2
|
@@ -1,383 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Gets an immutable list of all available Locales (installed Java Locales and custom ones added by Sitevision).
|
|
3
|
-
*
|
|
4
|
-
* <p>
|
|
5
|
-
* <strong>Note!</strong> The returned List is <em>immutable/unmodifiable</em>, i.e. you must create a copy if
|
|
6
|
-
* you want to modify it (e.g. sort).
|
|
7
|
-
* </p>
|
|
8
|
-
* <p>
|
|
9
|
-
* Below is an example of how to display some info about all locales via server-side Javascript:
|
|
10
|
-
* </p>
|
|
11
|
-
* <pre><code> (function() {
|
|
12
|
-
* var localeUtil = require('LocaleUtil'),
|
|
13
|
-
* locales = localeUtil.getAvailableLocales(),
|
|
14
|
-
* count = locales.size(),
|
|
15
|
-
* currentLocale = require('PortletContextUtil').getCurrentLocale(),
|
|
16
|
-
* locale, i;
|
|
17
|
-
*
|
|
18
|
-
* out.println('<table>');
|
|
19
|
-
* out.println('<tr>');
|
|
20
|
-
* out.println(' <th>Language</th>');
|
|
21
|
-
* out.println(' <th>Country</th>');
|
|
22
|
-
* out.println(' <th>Language Tag</th>');
|
|
23
|
-
* out.println(' <th>Native language name</th>');
|
|
24
|
-
* out.println(' <th>Localized language name</th>');
|
|
25
|
-
* out.println(' <th>Directionality</th>');
|
|
26
|
-
* out.println('</tr>');
|
|
27
|
-
* for (i = 0; i < count; i++) {
|
|
28
|
-
* locale = locales.get(i);
|
|
29
|
-
* out.println('<tr>');
|
|
30
|
-
* out.println(' <td>' + localeUtil.getNormalizedLanguage(locale) + '</td>');
|
|
31
|
-
* out.println(' <td>' + locale.getCountry() + '</td>');
|
|
32
|
-
* out.println(' <td>' + localeUtil.getLanguageTag(locale) + '</td>');
|
|
33
|
-
* out.println(' <td>' + localeUtil.getNativeLanguageName(locale) + '</td>');
|
|
34
|
-
* out.println(' <td>' + localeUtil.getLocalizedLanguageName(locale, currentLocale) + '</td>');
|
|
35
|
-
* out.println(' <td>' + (localeUtil.isRTL(locale) ? 'RTL' : 'LTR') + '</td>');
|
|
36
|
-
* out.println('</tr>');
|
|
37
|
-
* }
|
|
38
|
-
* out.println('</table>');
|
|
39
|
-
* }());</code></pre>
|
|
40
|
-
* @return a immutable/unmodifiable list of all available Locales (i.e. all Locales installed by Java and all custom Locales added by Sitevision)
|
|
41
|
-
* @since Sitevision 4.1
|
|
42
|
-
*/
|
|
43
|
-
export function getAvailableLocales(): unknown;
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* Gets the native language name for a specified Locale.
|
|
47
|
-
*
|
|
48
|
-
* <p>
|
|
49
|
-
* Some examples:
|
|
50
|
-
* </p>
|
|
51
|
-
* <ul>
|
|
52
|
-
* <li>A <em>Swedish</em> Locale will return <em>Svenska</em></li>
|
|
53
|
-
* <li>A <em>German</em> Locale will return <em>Deutsch</em></li>
|
|
54
|
-
* <li>A <em>Northern Sami</em> Locale will return <em>Davvisámegiella</em></li>
|
|
55
|
-
* </ul>
|
|
56
|
-
* @param aLocale the locale
|
|
57
|
-
* @return the native language name for <code>aLocale</code>, or <code>null</code> if <code>aLocale</code> is <code>null</code>
|
|
58
|
-
*/
|
|
59
|
-
export function getNativeLanguageName(aLocale: unknown): string;
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Gets the localized language name for a specified Locale.
|
|
63
|
-
*
|
|
64
|
-
* <p>
|
|
65
|
-
* Some examples:
|
|
66
|
-
* </p>
|
|
67
|
-
* <ul>
|
|
68
|
-
* <li>A <em>Swedish</em> <code>aLocale</code> and an <em>English</em> <code>aDisplayLocale</code> will return <em>Swedish</em></li>
|
|
69
|
-
* <li>An <em>English</em> <code>aLocale</code> and a <em>Swedish</em> <code>aDisplayLocale</code> will return <em>Engelska</em></li>
|
|
70
|
-
* <li>A <em>German</em> <code>aLocale</code> and a <em>Swedish</em> <code>aDisplayLocale</code> will return <em>Tyska</em></li>
|
|
71
|
-
* <li>A <em>German</em> <code>aLocale</code> and an <em>English</em> <code>aDisplayLocale</code> will return <em>German</em></li>
|
|
72
|
-
* </ul>
|
|
73
|
-
* @param aLocale the locale to get the language name for
|
|
74
|
-
* @param aDisplayLocale the locale that should be used when displaying the language name of <code>aLocale</code>
|
|
75
|
-
* @return the localized language name for <code>aLocale</code>, or <code>null</code> if <code>aLocale</code> is <code>null</code>
|
|
76
|
-
*/
|
|
77
|
-
export function getLocalizedLanguageName(
|
|
78
|
-
aLocale: unknown,
|
|
79
|
-
aDisplayLocale: unknown
|
|
80
|
-
): string;
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* Gets the native language name for a Locale that is resolved via a specified locale string.
|
|
84
|
-
*
|
|
85
|
-
* <p>
|
|
86
|
-
* This method can be seen as a convenience method that combines the {@link #getLocaleByString(String)} method and the
|
|
87
|
-
* {@link #getNativeLanguageName(java.util.Locale)} method to resolve a <code>Locale</code> and get the native language name.
|
|
88
|
-
* But this is not strictly true. This method will handle all all well-formed locale strings that starts with a valid
|
|
89
|
-
* language code used by a supported locale <em>(even though the "full" locale string might actually refer to a non-supported locale)</em>.
|
|
90
|
-
* </p>
|
|
91
|
-
* <p>
|
|
92
|
-
* Some examples of this forgiving/lenient behaviour:
|
|
93
|
-
* </p>
|
|
94
|
-
* <ul>
|
|
95
|
-
* <li>
|
|
96
|
-
* <code>"rmy-RO"</code> matches a supported locale (Romani in Romania) and will return
|
|
97
|
-
* the native name for the "rmy" language.
|
|
98
|
-
* </li>
|
|
99
|
-
* <li>
|
|
100
|
-
* <code>"rmy_RO"</code> matches a supported locale (Romani in Romania) and will return
|
|
101
|
-
* the native name for the "rmy" language.
|
|
102
|
-
* </li>
|
|
103
|
-
* <li>
|
|
104
|
-
* <code>"rmy"</code> does NOT match the supported locale <code>"rmy-RO"/"rmy_RO"</code> but will still return
|
|
105
|
-
* the native name for the "rmy" language.
|
|
106
|
-
* </li>
|
|
107
|
-
* <li>
|
|
108
|
-
* <code>"rmy-SE"</code> does NOT match the supported locale <code>"rmy-RO"</code> but will still return
|
|
109
|
-
* the native name for the "rmy" language.
|
|
110
|
-
* </li>
|
|
111
|
-
* <li>
|
|
112
|
-
* <code>"rmy_SE"</code> does NOT match the supported locale <code>"rmy_RO"</code> but will still return
|
|
113
|
-
* the native name for the "rmy" language.
|
|
114
|
-
* </li>
|
|
115
|
-
* </ul>
|
|
116
|
-
* @param aLocaleString a language tag ("en-US") or string that contains language only ("en") or language and country ("en_US"), typically what you will get as result of <code>Locale.toString()</code>
|
|
117
|
-
* @return the native language name for the <code>aLocale</code> that matches <code>aLocaleString</code>, or <code>null</code> if <code>aLocaleString</code> is <code>null</code>, whitespace only or doesn't match a supported Locale
|
|
118
|
-
*/
|
|
119
|
-
export function getNativeLanguageNameByString(aLocaleString: string): string;
|
|
120
|
-
|
|
121
|
-
/**
|
|
122
|
-
* Gets the localized language name for a Locale that is resolved via a specified locale string.
|
|
123
|
-
*
|
|
124
|
-
* <p>
|
|
125
|
-
* This is a convenience method that combines the {@link #getLocaleByString(String)} method and the
|
|
126
|
-
* {@link #getLocalizedLanguageName(java.util.Locale, java.util.Locale)}
|
|
127
|
-
* method to resolve a <code>Locale</code> and get the localized language name.
|
|
128
|
-
* </p>
|
|
129
|
-
* @param aLocaleString a string that contains language ("en") or language and country ("en_US"), typically what you will get as result of <code>Locale.toString()</code>
|
|
130
|
-
* @param aDisplayLocale the locale that should be used when displaying the language name of the <code>Locale</code> resolved by <code>aLocaleString</code>
|
|
131
|
-
* @return the localized language name for the <code>aLocale</code> that matches <code>aLocaleString</code>, or <code>null</code> if <code>aLocaleString</code> is <code>null</code>, whitespace only or doesn't match a supported Locale
|
|
132
|
-
*/
|
|
133
|
-
export function getLocalizedLanguageNameByString(
|
|
134
|
-
aLocaleString: string,
|
|
135
|
-
aDisplayLocale: unknown
|
|
136
|
-
): string;
|
|
137
|
-
|
|
138
|
-
/**
|
|
139
|
-
* Returns the Locale for a language tag or a String that contains language or language + country ("en-US" or "en" or "en_US").
|
|
140
|
-
*
|
|
141
|
-
* <p>
|
|
142
|
-
* A <code>toString()</code> on a english american locale returns the String <code>"en_US"</code>, but to create a locale
|
|
143
|
-
* from that string you can NOT just create it by doing: <code>new Locale("en_US")</code>. You must split language (en)
|
|
144
|
-
* and country (US) since the proper way of creating the Locale is: <code>new Locale("en", "US")</code>.
|
|
145
|
-
* </p>
|
|
146
|
-
*
|
|
147
|
-
* <p>
|
|
148
|
-
* Some examples of accepted locale strings:
|
|
149
|
-
* </p>
|
|
150
|
-
* <ul>
|
|
151
|
-
* <li><em>Swedish</em> language tag: "sv-SE" and locale strings: "sv", "sv_SE"</li>
|
|
152
|
-
* <li><em>German</em> language tag: "de-DE" and locale strings: "de", "de_DE"</li>
|
|
153
|
-
* <li><em>Northern Sami</em> language tag: "se-SE" and locale string: "se_SE"</li>
|
|
154
|
-
* </ul>
|
|
155
|
-
*
|
|
156
|
-
* <p>
|
|
157
|
-
* <em>Note! This method only handles supported Locale's, i.e. Locales available via {@link #getAvailableLocales()}.</em>
|
|
158
|
-
* </p>
|
|
159
|
-
* @param aLocaleString a language tag or the toString() value of a Locale (i.e. a String with a lowercased language - or a lowercased language and uppercased country, separated with underscore).
|
|
160
|
-
* @return a Locale matching <code>aLocaleString</code>, or <code>null</code> if <code>aLocaleString</code> is <code>null</code>, whitespace only or doesn't match a supported Locale
|
|
161
|
-
*/
|
|
162
|
-
export function getLocaleByString(aLocaleString: string): unknown;
|
|
163
|
-
|
|
164
|
-
/**
|
|
165
|
-
* Returns the IETF BCP 47 language tag value for a Locale.
|
|
166
|
-
*
|
|
167
|
-
* <p>
|
|
168
|
-
* Language tags are used to indicate the language of texts or other items in HTML and XML documents. The language tag
|
|
169
|
-
* syntax is defined by the IETF <a href="http://www.rfc-editor.org/rfc/bcp/bcp47.txt">BCP 47</a>
|
|
170
|
-
* and exemplified by W3C internationalization in
|
|
171
|
-
* <a href="http://www.w3.org/International/articles/language-tags/">Language tags in HTML and XML</a>.
|
|
172
|
-
* </p>
|
|
173
|
-
*
|
|
174
|
-
* <p>
|
|
175
|
-
* This method supports both the Java default locales and the custom-defined ones in Sitevision (such as Northern Sami).
|
|
176
|
-
* It produces a well-formatted BCP 47 value for a specified Locale but the language and region are not verified against the
|
|
177
|
-
* <a href="http://www.iana.org/assignments/language-subtag-registry/language-subtag-registry">IANA language subtag registry</a>.
|
|
178
|
-
* </p>
|
|
179
|
-
* <p>
|
|
180
|
-
* Some output examples:
|
|
181
|
-
* </p>
|
|
182
|
-
* <ul>
|
|
183
|
-
* <li><em>Swedish</em> locale (language "sv", country "SE"): "sv-SE"</li>
|
|
184
|
-
* <li><em>American english</em> locale (language "en", country "US"): "en-US"</li>
|
|
185
|
-
* <li><em>Canadian french</em> locale (language "fr", country "CA"): "fr-CA"</li>
|
|
186
|
-
* </ul>
|
|
187
|
-
* @param aLocale a locale
|
|
188
|
-
* @return the <code>aLocale</code> formatted according to BCP 47, or <code>null</code> if <code>aLocale</code> is <code>null</code>
|
|
189
|
-
*/
|
|
190
|
-
export function getLanguageTag(aLocale: unknown): string;
|
|
191
|
-
|
|
192
|
-
/**
|
|
193
|
-
* Returns the normalized language for a specified Locale.
|
|
194
|
-
*
|
|
195
|
-
* <p>
|
|
196
|
-
* Java uses old ISO language codes for for language codes that have changed. For instance: the legacy ISO language code for <em>Yiddish</em>
|
|
197
|
-
* is <em>"ji"</em>, but that was changed to <em>"yi"</em> 1989. This method compensates for Javas legacy considerations and returns the
|
|
198
|
-
* new ISO language codes instead.
|
|
199
|
-
* </p>
|
|
200
|
-
* @param aLocale a locale
|
|
201
|
-
* @return the normalized language for the locale, or null if the locale is null
|
|
202
|
-
* @since Sitevision 4.5.1
|
|
203
|
-
*/
|
|
204
|
-
export function getNormalizedLanguage(aLocale: unknown): string;
|
|
205
|
-
|
|
206
|
-
/**
|
|
207
|
-
* Checks if a locale has writing direction Right-To-Left (RTL).
|
|
208
|
-
*
|
|
209
|
-
* <p>
|
|
210
|
-
* Most languages have a clear writing direction, typically Left-To-Right (LTR). Though, some languages has mixed writing directions
|
|
211
|
-
* (e.g. text is RTL but numbers are LTR) and some languages is written with different symbols (e.g. Latin, Arabic) in different regions.
|
|
212
|
-
* This method will return true for such complex/mixed languages if the official writing direction is RTL or if RTL is used by the majority
|
|
213
|
-
* of the native language writers.
|
|
214
|
-
* </p>
|
|
215
|
-
* <p>
|
|
216
|
-
* This method supports the Java default locales and the custom-defined ones in Sitevision (such as Northern Sami).
|
|
217
|
-
* It also supports locales that aren't officially supported by Sitevision (i.e. not present in {@link #getAvailableLocales()}).
|
|
218
|
-
* The direction of the first char in the locales native name (as of {@link #getNativeLanguageName(Locale)})
|
|
219
|
-
* is used to determine if the locale is LTR or RTL for such (unofficial) locales.
|
|
220
|
-
* </p>
|
|
221
|
-
* @param aLocale a locale
|
|
222
|
-
* @return true if aLocale has Right-To-Left (RTL) writing direction, false otherwise (i.e. false indicates LTR)
|
|
223
|
-
* @since Sitevision 4.3
|
|
224
|
-
*/
|
|
225
|
-
export function isRTL(aLocale: unknown): boolean;
|
|
226
|
-
|
|
227
|
-
/**
|
|
228
|
-
* <p>
|
|
229
|
-
* Gets a Locale with language and country for a (typically language-only) Locale.
|
|
230
|
-
* </p>
|
|
231
|
-
*
|
|
232
|
-
* <table>
|
|
233
|
-
* <caption>Replacement of language-only locales</caption>
|
|
234
|
-
* <tr>
|
|
235
|
-
* <th scope="col">Locale/language</th>
|
|
236
|
-
* <th scope="col">Replacement</th>
|
|
237
|
-
* </tr>
|
|
238
|
-
* <tr>
|
|
239
|
-
* <td>Swedish (sv)</td>
|
|
240
|
-
* <td>Sweden (sv-SE)</td>
|
|
241
|
-
* </tr>
|
|
242
|
-
* <tr>
|
|
243
|
-
* <td>Norwegian (no)</td>
|
|
244
|
-
* <td>Norway (no-NO)</td>
|
|
245
|
-
* </tr>
|
|
246
|
-
* <tr>
|
|
247
|
-
* <td>Danish (da)</td>
|
|
248
|
-
* <td>Denmark (da-DK)</td>
|
|
249
|
-
* </tr>
|
|
250
|
-
* <tr>
|
|
251
|
-
* <td>Finnish (fi)</td>
|
|
252
|
-
* <td>Finland (fi-FI)</td>
|
|
253
|
-
* </tr>
|
|
254
|
-
* <tr>
|
|
255
|
-
* <td>Icelandic (is)</td>
|
|
256
|
-
* <td>Iceland (is-IS)</td>
|
|
257
|
-
* </tr>
|
|
258
|
-
* <tr>
|
|
259
|
-
* <td>Belarusian (be)</td>
|
|
260
|
-
* <td>Belarus (be-BY)</td>
|
|
261
|
-
* </tr>
|
|
262
|
-
* <tr>
|
|
263
|
-
* <td>Bulgarian (bg)</td>
|
|
264
|
-
* <td>Bulgaria (bg-BG)</td>
|
|
265
|
-
* </tr>
|
|
266
|
-
* <tr>
|
|
267
|
-
* <td>Catalan (ca)</td>
|
|
268
|
-
* <td>Spain (ca-ES)</td>
|
|
269
|
-
* </tr>
|
|
270
|
-
* <tr>
|
|
271
|
-
* <td>Czech (cs)</td>
|
|
272
|
-
* <td>Czech Republic (cs-CZ)</td>
|
|
273
|
-
* </tr>
|
|
274
|
-
* <tr>
|
|
275
|
-
* <td>Estonian (et)</td>
|
|
276
|
-
* <td>Estonia (et-EE)</td>
|
|
277
|
-
* </tr>
|
|
278
|
-
* <tr>
|
|
279
|
-
* <td>Irish (ga)</td>
|
|
280
|
-
* <td>Ireland (ga-IE)</td>
|
|
281
|
-
* </tr>
|
|
282
|
-
* <tr>
|
|
283
|
-
* <td>Hebrew (he) and (iw)</td>
|
|
284
|
-
* <td>Israel (he-IL)</td>
|
|
285
|
-
* </tr>
|
|
286
|
-
* <tr>
|
|
287
|
-
* <td>Hindi (hi)</td>
|
|
288
|
-
* <td>India (hi-IN)</td>
|
|
289
|
-
* </tr>
|
|
290
|
-
* <tr>
|
|
291
|
-
* <td>Croatian (hr)</td>
|
|
292
|
-
* <td>Croatia (hr-HR)</td>
|
|
293
|
-
* </tr>
|
|
294
|
-
* <tr>
|
|
295
|
-
* <td>Indonesian (id) and (in)</td>
|
|
296
|
-
* <td>Indonesia (id-ID)</td>
|
|
297
|
-
* </tr>
|
|
298
|
-
* <tr>
|
|
299
|
-
* <td>Italian (it)</td>
|
|
300
|
-
* <td>Italy (it-IT)</td>
|
|
301
|
-
* </tr>
|
|
302
|
-
* <tr>
|
|
303
|
-
* <td>Japanese (ja)</td>
|
|
304
|
-
* <td>Japan (ja-JP)</td>
|
|
305
|
-
* </tr>
|
|
306
|
-
* <tr>
|
|
307
|
-
* <td>Lithuanian (lt)</td>
|
|
308
|
-
* <td>Lithuania (lt-LT)</td>
|
|
309
|
-
* </tr>
|
|
310
|
-
* <tr>
|
|
311
|
-
* <td>Latvian (lv)</td>
|
|
312
|
-
* <td>Latvia (lv-LV)</td>
|
|
313
|
-
* </tr>
|
|
314
|
-
* <tr>
|
|
315
|
-
* <td>Malay (ms)</td>
|
|
316
|
-
* <td>Malaysia (ms-MY)</td>
|
|
317
|
-
* </tr>
|
|
318
|
-
* <tr>
|
|
319
|
-
* <td>Maltese (mt)</td>
|
|
320
|
-
* <td>Malta (mt-MT)</td>
|
|
321
|
-
* </tr>
|
|
322
|
-
* <tr>
|
|
323
|
-
* <td>Polish (pl)</td>
|
|
324
|
-
* <td>Poland (pl-PL)</td>
|
|
325
|
-
* </tr>
|
|
326
|
-
* <tr>
|
|
327
|
-
* <td>Romanian (ro)</td>
|
|
328
|
-
* <td>Romania (ro-RO)</td>
|
|
329
|
-
* </tr>
|
|
330
|
-
* <tr>
|
|
331
|
-
* <td>Slovak (sk)</td>
|
|
332
|
-
* <td>Slovakia (sk-SK)</td>
|
|
333
|
-
* </tr>
|
|
334
|
-
* <tr>
|
|
335
|
-
* <td>Slovenian (sl)</td>
|
|
336
|
-
* <td>Slovenia (sl-SI)</td>
|
|
337
|
-
* </tr>
|
|
338
|
-
* <tr>
|
|
339
|
-
* <td>Albanian (sq)</td>
|
|
340
|
-
* <td>Albania (sq-AL)</td>
|
|
341
|
-
* </tr>
|
|
342
|
-
* <tr>
|
|
343
|
-
* <td>Thai (th)</td>
|
|
344
|
-
* <td>Thailand (th-TH)</td>
|
|
345
|
-
* </tr>
|
|
346
|
-
* <tr>
|
|
347
|
-
* <td>Turkish (tr)</td>
|
|
348
|
-
* <td>Turkey (tr-TR)</td>
|
|
349
|
-
* </tr>
|
|
350
|
-
* <tr>
|
|
351
|
-
* <td>Ukranian (uk)</td>
|
|
352
|
-
* <td>Ukraine (uk-UA)</td>
|
|
353
|
-
* </tr>
|
|
354
|
-
* <tr>
|
|
355
|
-
* <td>Vietnamese (vi)</td>
|
|
356
|
-
* <td>Vietnam (vi-VN)</td>
|
|
357
|
-
* </tr>
|
|
358
|
-
* </table>
|
|
359
|
-
* <p>
|
|
360
|
-
* <strong>Important language-only note!</strong> There are many language-only locales that can not be resolved
|
|
361
|
-
* <em>(i.e. the language is officially spoken in multiple countries)</em>.
|
|
362
|
-
* This method will return <code>null</code> for such locales. For example:
|
|
363
|
-
* </p>
|
|
364
|
-
* <ul>
|
|
365
|
-
* <li>English (en)</li>
|
|
366
|
-
* <li>French (fr)</li>
|
|
367
|
-
* <li>German (de)</li>
|
|
368
|
-
* <li>Dutch (nl)</li>
|
|
369
|
-
* <li>Spanish (es)</li>
|
|
370
|
-
* <li>Russian (ru)</li>
|
|
371
|
-
* <li>Arabic (ar)</li>
|
|
372
|
-
* <li>Farsi (fa)</li>
|
|
373
|
-
* <li>...</li>
|
|
374
|
-
* </ul>
|
|
375
|
-
* @param aLocale a Locale, typically a language-only Locale
|
|
376
|
-
* @return the corresponding locale with country, or null if no corresponding locale could be found
|
|
377
|
-
* @since Sitevision 6.1
|
|
378
|
-
*/
|
|
379
|
-
export function resolveCountryLocale(aLocale: unknown): unknown;
|
|
380
|
-
|
|
381
1
|
/**
|
|
382
2
|
* Locale utility interface.
|
|
383
3
|
*
|
|
@@ -408,19 +28,387 @@ export function resolveCountryLocale(aLocale: unknown): unknown;
|
|
|
408
28
|
* @see senselogic.sitevision.api.context.PortletContextUtil#getCurrentLocale()
|
|
409
29
|
* @see senselogic.sitevision.api.node.NodeResolverUtil#getLocaleResolver()
|
|
410
30
|
*/
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
31
|
+
export interface LocaleUtil {
|
|
32
|
+
/**
|
|
33
|
+
* Gets an immutable list of all available Locales (installed Java Locales and custom ones added by Sitevision).
|
|
34
|
+
*
|
|
35
|
+
* <p>
|
|
36
|
+
* <strong>Note!</strong> The returned List is <em>immutable/unmodifiable</em>, i.e. you must create a copy if
|
|
37
|
+
* you want to modify it (e.g. sort).
|
|
38
|
+
* </p>
|
|
39
|
+
* <p>
|
|
40
|
+
* Below is an example of how to display some info about all locales via server-side Javascript:
|
|
41
|
+
* </p>
|
|
42
|
+
* <pre><code> (function() {
|
|
43
|
+
* var localeUtil = require('LocaleUtil'),
|
|
44
|
+
* locales = localeUtil.getAvailableLocales(),
|
|
45
|
+
* count = locales.size(),
|
|
46
|
+
* currentLocale = require('PortletContextUtil').getCurrentLocale(),
|
|
47
|
+
* locale, i;
|
|
48
|
+
*
|
|
49
|
+
* out.println('<table>');
|
|
50
|
+
* out.println('<tr>');
|
|
51
|
+
* out.println(' <th>Language</th>');
|
|
52
|
+
* out.println(' <th>Country</th>');
|
|
53
|
+
* out.println(' <th>Language Tag</th>');
|
|
54
|
+
* out.println(' <th>Native language name</th>');
|
|
55
|
+
* out.println(' <th>Localized language name</th>');
|
|
56
|
+
* out.println(' <th>Directionality</th>');
|
|
57
|
+
* out.println('</tr>');
|
|
58
|
+
* for (i = 0; i < count; i++) {
|
|
59
|
+
* locale = locales.get(i);
|
|
60
|
+
* out.println('<tr>');
|
|
61
|
+
* out.println(' <td>' + localeUtil.getNormalizedLanguage(locale) + '</td>');
|
|
62
|
+
* out.println(' <td>' + locale.getCountry() + '</td>');
|
|
63
|
+
* out.println(' <td>' + localeUtil.getLanguageTag(locale) + '</td>');
|
|
64
|
+
* out.println(' <td>' + localeUtil.getNativeLanguageName(locale) + '</td>');
|
|
65
|
+
* out.println(' <td>' + localeUtil.getLocalizedLanguageName(locale, currentLocale) + '</td>');
|
|
66
|
+
* out.println(' <td>' + (localeUtil.isRTL(locale) ? 'RTL' : 'LTR') + '</td>');
|
|
67
|
+
* out.println('</tr>');
|
|
68
|
+
* }
|
|
69
|
+
* out.println('</table>');
|
|
70
|
+
* }());</code></pre>
|
|
71
|
+
* @return a immutable/unmodifiable list of all available Locales (i.e. all Locales installed by Java and all custom Locales added by Sitevision)
|
|
72
|
+
* @since Sitevision 4.1
|
|
73
|
+
*/
|
|
74
|
+
getAvailableLocales(): unknown;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Gets the native language name for a specified Locale.
|
|
78
|
+
*
|
|
79
|
+
* <p>
|
|
80
|
+
* Some examples:
|
|
81
|
+
* </p>
|
|
82
|
+
* <ul>
|
|
83
|
+
* <li>A <em>Swedish</em> Locale will return <em>Svenska</em></li>
|
|
84
|
+
* <li>A <em>German</em> Locale will return <em>Deutsch</em></li>
|
|
85
|
+
* <li>A <em>Northern Sami</em> Locale will return <em>Davvisámegiella</em></li>
|
|
86
|
+
* </ul>
|
|
87
|
+
* @param aLocale the locale
|
|
88
|
+
* @return the native language name for <code>aLocale</code>, or <code>null</code> if <code>aLocale</code> is <code>null</code>
|
|
89
|
+
*/
|
|
90
|
+
getNativeLanguageName(aLocale: unknown): string;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Gets the localized language name for a specified Locale.
|
|
94
|
+
*
|
|
95
|
+
* <p>
|
|
96
|
+
* Some examples:
|
|
97
|
+
* </p>
|
|
98
|
+
* <ul>
|
|
99
|
+
* <li>A <em>Swedish</em> <code>aLocale</code> and an <em>English</em> <code>aDisplayLocale</code> will return <em>Swedish</em></li>
|
|
100
|
+
* <li>An <em>English</em> <code>aLocale</code> and a <em>Swedish</em> <code>aDisplayLocale</code> will return <em>Engelska</em></li>
|
|
101
|
+
* <li>A <em>German</em> <code>aLocale</code> and a <em>Swedish</em> <code>aDisplayLocale</code> will return <em>Tyska</em></li>
|
|
102
|
+
* <li>A <em>German</em> <code>aLocale</code> and an <em>English</em> <code>aDisplayLocale</code> will return <em>German</em></li>
|
|
103
|
+
* </ul>
|
|
104
|
+
* @param aLocale the locale to get the language name for
|
|
105
|
+
* @param aDisplayLocale the locale that should be used when displaying the language name of <code>aLocale</code>
|
|
106
|
+
* @return the localized language name for <code>aLocale</code>, or <code>null</code> if <code>aLocale</code> is <code>null</code>
|
|
107
|
+
*/
|
|
108
|
+
getLocalizedLanguageName(aLocale: unknown, aDisplayLocale: unknown): string;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Gets the native language name for a Locale that is resolved via a specified locale string.
|
|
112
|
+
*
|
|
113
|
+
* <p>
|
|
114
|
+
* This method can be seen as a convenience method that combines the {@link #getLocaleByString(String)} method and the
|
|
115
|
+
* {@link #getNativeLanguageName(java.util.Locale)} method to resolve a <code>Locale</code> and get the native language name.
|
|
116
|
+
* But this is not strictly true. This method will handle all all well-formed locale strings that starts with a valid
|
|
117
|
+
* language code used by a supported locale <em>(even though the "full" locale string might actually refer to a non-supported locale)</em>.
|
|
118
|
+
* </p>
|
|
119
|
+
* <p>
|
|
120
|
+
* Some examples of this forgiving/lenient behaviour:
|
|
121
|
+
* </p>
|
|
122
|
+
* <ul>
|
|
123
|
+
* <li>
|
|
124
|
+
* <code>"rmy-RO"</code> matches a supported locale (Romani in Romania) and will return
|
|
125
|
+
* the native name for the "rmy" language.
|
|
126
|
+
* </li>
|
|
127
|
+
* <li>
|
|
128
|
+
* <code>"rmy_RO"</code> matches a supported locale (Romani in Romania) and will return
|
|
129
|
+
* the native name for the "rmy" language.
|
|
130
|
+
* </li>
|
|
131
|
+
* <li>
|
|
132
|
+
* <code>"rmy"</code> does NOT match the supported locale <code>"rmy-RO"/"rmy_RO"</code> but will still return
|
|
133
|
+
* the native name for the "rmy" language.
|
|
134
|
+
* </li>
|
|
135
|
+
* <li>
|
|
136
|
+
* <code>"rmy-SE"</code> does NOT match the supported locale <code>"rmy-RO"</code> but will still return
|
|
137
|
+
* the native name for the "rmy" language.
|
|
138
|
+
* </li>
|
|
139
|
+
* <li>
|
|
140
|
+
* <code>"rmy_SE"</code> does NOT match the supported locale <code>"rmy_RO"</code> but will still return
|
|
141
|
+
* the native name for the "rmy" language.
|
|
142
|
+
* </li>
|
|
143
|
+
* </ul>
|
|
144
|
+
* @param aLocaleString a language tag ("en-US") or string that contains language only ("en") or language and country ("en_US"), typically what you will get as result of <code>Locale.toString()</code>
|
|
145
|
+
* @return the native language name for the <code>aLocale</code> that matches <code>aLocaleString</code>, or <code>null</code> if <code>aLocaleString</code> is <code>null</code>, whitespace only or doesn't match a supported Locale
|
|
146
|
+
*/
|
|
147
|
+
getNativeLanguageNameByString(aLocaleString: string): string;
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Gets the localized language name for a Locale that is resolved via a specified locale string.
|
|
151
|
+
*
|
|
152
|
+
* <p>
|
|
153
|
+
* This is a convenience method that combines the {@link #getLocaleByString(String)} method and the
|
|
154
|
+
* {@link #getLocalizedLanguageName(java.util.Locale, java.util.Locale)}
|
|
155
|
+
* method to resolve a <code>Locale</code> and get the localized language name.
|
|
156
|
+
* </p>
|
|
157
|
+
* @param aLocaleString a string that contains language ("en") or language and country ("en_US"), typically what you will get as result of <code>Locale.toString()</code>
|
|
158
|
+
* @param aDisplayLocale the locale that should be used when displaying the language name of the <code>Locale</code> resolved by <code>aLocaleString</code>
|
|
159
|
+
* @return the localized language name for the <code>aLocale</code> that matches <code>aLocaleString</code>, or <code>null</code> if <code>aLocaleString</code> is <code>null</code>, whitespace only or doesn't match a supported Locale
|
|
160
|
+
*/
|
|
161
|
+
getLocalizedLanguageNameByString(
|
|
162
|
+
aLocaleString: string,
|
|
163
|
+
aDisplayLocale: unknown
|
|
164
|
+
): string;
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Returns the Locale for a language tag or a String that contains language or language + country ("en-US" or "en" or "en_US").
|
|
168
|
+
*
|
|
169
|
+
* <p>
|
|
170
|
+
* A <code>toString()</code> on a english american locale returns the String <code>"en_US"</code>, but to create a locale
|
|
171
|
+
* from that string you can NOT just create it by doing: <code>new Locale("en_US")</code>. You must split language (en)
|
|
172
|
+
* and country (US) since the proper way of creating the Locale is: <code>new Locale("en", "US")</code>.
|
|
173
|
+
* </p>
|
|
174
|
+
*
|
|
175
|
+
* <p>
|
|
176
|
+
* Some examples of accepted locale strings:
|
|
177
|
+
* </p>
|
|
178
|
+
* <ul>
|
|
179
|
+
* <li><em>Swedish</em> language tag: "sv-SE" and locale strings: "sv", "sv_SE"</li>
|
|
180
|
+
* <li><em>German</em> language tag: "de-DE" and locale strings: "de", "de_DE"</li>
|
|
181
|
+
* <li><em>Northern Sami</em> language tag: "se-SE" and locale string: "se_SE"</li>
|
|
182
|
+
* </ul>
|
|
183
|
+
*
|
|
184
|
+
* <p>
|
|
185
|
+
* <em>Note! This method only handles supported Locale's, i.e. Locales available via {@link #getAvailableLocales()}.</em>
|
|
186
|
+
* </p>
|
|
187
|
+
* @param aLocaleString a language tag or the toString() value of a Locale (i.e. a String with a lowercased language - or a lowercased language and uppercased country, separated with underscore).
|
|
188
|
+
* @return a Locale matching <code>aLocaleString</code>, or <code>null</code> if <code>aLocaleString</code> is <code>null</code>, whitespace only or doesn't match a supported Locale
|
|
189
|
+
*/
|
|
190
|
+
getLocaleByString(aLocaleString: string): unknown;
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* Returns the IETF BCP 47 language tag value for a Locale.
|
|
194
|
+
*
|
|
195
|
+
* <p>
|
|
196
|
+
* Language tags are used to indicate the language of texts or other items in HTML and XML documents. The language tag
|
|
197
|
+
* syntax is defined by the IETF <a href="http://www.rfc-editor.org/rfc/bcp/bcp47.txt">BCP 47</a>
|
|
198
|
+
* and exemplified by W3C internationalization in
|
|
199
|
+
* <a href="http://www.w3.org/International/articles/language-tags/">Language tags in HTML and XML</a>.
|
|
200
|
+
* </p>
|
|
201
|
+
*
|
|
202
|
+
* <p>
|
|
203
|
+
* This method supports both the Java default locales and the custom-defined ones in Sitevision (such as Northern Sami).
|
|
204
|
+
* It produces a well-formatted BCP 47 value for a specified Locale but the language and region are not verified against the
|
|
205
|
+
* <a href="http://www.iana.org/assignments/language-subtag-registry/language-subtag-registry">IANA language subtag registry</a>.
|
|
206
|
+
* </p>
|
|
207
|
+
* <p>
|
|
208
|
+
* Some output examples:
|
|
209
|
+
* </p>
|
|
210
|
+
* <ul>
|
|
211
|
+
* <li><em>Swedish</em> locale (language "sv", country "SE"): "sv-SE"</li>
|
|
212
|
+
* <li><em>American english</em> locale (language "en", country "US"): "en-US"</li>
|
|
213
|
+
* <li><em>Canadian french</em> locale (language "fr", country "CA"): "fr-CA"</li>
|
|
214
|
+
* </ul>
|
|
215
|
+
* @param aLocale a locale
|
|
216
|
+
* @return the <code>aLocale</code> formatted according to BCP 47, or <code>null</code> if <code>aLocale</code> is <code>null</code>
|
|
217
|
+
*/
|
|
218
|
+
getLanguageTag(aLocale: unknown): string;
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* Returns the normalized language for a specified Locale.
|
|
222
|
+
*
|
|
223
|
+
* <p>
|
|
224
|
+
* Java uses old ISO language codes for for language codes that have changed. For instance: the legacy ISO language code for <em>Yiddish</em>
|
|
225
|
+
* is <em>"ji"</em>, but that was changed to <em>"yi"</em> 1989. This method compensates for Javas legacy considerations and returns the
|
|
226
|
+
* new ISO language codes instead.
|
|
227
|
+
* </p>
|
|
228
|
+
* @param aLocale a locale
|
|
229
|
+
* @return the normalized language for the locale, or null if the locale is null
|
|
230
|
+
* @since Sitevision 4.5.1
|
|
231
|
+
*/
|
|
232
|
+
getNormalizedLanguage(aLocale: unknown): string;
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* Checks if a locale has writing direction Right-To-Left (RTL).
|
|
236
|
+
*
|
|
237
|
+
* <p>
|
|
238
|
+
* Most languages have a clear writing direction, typically Left-To-Right (LTR). Though, some languages has mixed writing directions
|
|
239
|
+
* (e.g. text is RTL but numbers are LTR) and some languages is written with different symbols (e.g. Latin, Arabic) in different regions.
|
|
240
|
+
* This method will return true for such complex/mixed languages if the official writing direction is RTL or if RTL is used by the majority
|
|
241
|
+
* of the native language writers.
|
|
242
|
+
* </p>
|
|
243
|
+
* <p>
|
|
244
|
+
* This method supports the Java default locales and the custom-defined ones in Sitevision (such as Northern Sami).
|
|
245
|
+
* It also supports locales that aren't officially supported by Sitevision (i.e. not present in {@link #getAvailableLocales()}).
|
|
246
|
+
* The direction of the first char in the locales native name (as of {@link #getNativeLanguageName(Locale)})
|
|
247
|
+
* is used to determine if the locale is LTR or RTL for such (unofficial) locales.
|
|
248
|
+
* </p>
|
|
249
|
+
* @param aLocale a locale
|
|
250
|
+
* @return true if aLocale has Right-To-Left (RTL) writing direction, false otherwise (i.e. false indicates LTR)
|
|
251
|
+
* @since Sitevision 4.3
|
|
252
|
+
*/
|
|
253
|
+
isRTL(aLocale: unknown): boolean;
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* <p>
|
|
257
|
+
* Gets a Locale with language and country for a (typically language-only) Locale.
|
|
258
|
+
* </p>
|
|
259
|
+
*
|
|
260
|
+
* <table>
|
|
261
|
+
* <caption>Replacement of language-only locales</caption>
|
|
262
|
+
* <tr>
|
|
263
|
+
* <th scope="col">Locale/language</th>
|
|
264
|
+
* <th scope="col">Replacement</th>
|
|
265
|
+
* </tr>
|
|
266
|
+
* <tr>
|
|
267
|
+
* <td>Swedish (sv)</td>
|
|
268
|
+
* <td>Sweden (sv-SE)</td>
|
|
269
|
+
* </tr>
|
|
270
|
+
* <tr>
|
|
271
|
+
* <td>Norwegian (no)</td>
|
|
272
|
+
* <td>Norway (no-NO)</td>
|
|
273
|
+
* </tr>
|
|
274
|
+
* <tr>
|
|
275
|
+
* <td>Danish (da)</td>
|
|
276
|
+
* <td>Denmark (da-DK)</td>
|
|
277
|
+
* </tr>
|
|
278
|
+
* <tr>
|
|
279
|
+
* <td>Finnish (fi)</td>
|
|
280
|
+
* <td>Finland (fi-FI)</td>
|
|
281
|
+
* </tr>
|
|
282
|
+
* <tr>
|
|
283
|
+
* <td>Icelandic (is)</td>
|
|
284
|
+
* <td>Iceland (is-IS)</td>
|
|
285
|
+
* </tr>
|
|
286
|
+
* <tr>
|
|
287
|
+
* <td>Belarusian (be)</td>
|
|
288
|
+
* <td>Belarus (be-BY)</td>
|
|
289
|
+
* </tr>
|
|
290
|
+
* <tr>
|
|
291
|
+
* <td>Bulgarian (bg)</td>
|
|
292
|
+
* <td>Bulgaria (bg-BG)</td>
|
|
293
|
+
* </tr>
|
|
294
|
+
* <tr>
|
|
295
|
+
* <td>Catalan (ca)</td>
|
|
296
|
+
* <td>Spain (ca-ES)</td>
|
|
297
|
+
* </tr>
|
|
298
|
+
* <tr>
|
|
299
|
+
* <td>Czech (cs)</td>
|
|
300
|
+
* <td>Czech Republic (cs-CZ)</td>
|
|
301
|
+
* </tr>
|
|
302
|
+
* <tr>
|
|
303
|
+
* <td>Estonian (et)</td>
|
|
304
|
+
* <td>Estonia (et-EE)</td>
|
|
305
|
+
* </tr>
|
|
306
|
+
* <tr>
|
|
307
|
+
* <td>Irish (ga)</td>
|
|
308
|
+
* <td>Ireland (ga-IE)</td>
|
|
309
|
+
* </tr>
|
|
310
|
+
* <tr>
|
|
311
|
+
* <td>Hebrew (he) and (iw)</td>
|
|
312
|
+
* <td>Israel (he-IL)</td>
|
|
313
|
+
* </tr>
|
|
314
|
+
* <tr>
|
|
315
|
+
* <td>Hindi (hi)</td>
|
|
316
|
+
* <td>India (hi-IN)</td>
|
|
317
|
+
* </tr>
|
|
318
|
+
* <tr>
|
|
319
|
+
* <td>Croatian (hr)</td>
|
|
320
|
+
* <td>Croatia (hr-HR)</td>
|
|
321
|
+
* </tr>
|
|
322
|
+
* <tr>
|
|
323
|
+
* <td>Indonesian (id) and (in)</td>
|
|
324
|
+
* <td>Indonesia (id-ID)</td>
|
|
325
|
+
* </tr>
|
|
326
|
+
* <tr>
|
|
327
|
+
* <td>Italian (it)</td>
|
|
328
|
+
* <td>Italy (it-IT)</td>
|
|
329
|
+
* </tr>
|
|
330
|
+
* <tr>
|
|
331
|
+
* <td>Japanese (ja)</td>
|
|
332
|
+
* <td>Japan (ja-JP)</td>
|
|
333
|
+
* </tr>
|
|
334
|
+
* <tr>
|
|
335
|
+
* <td>Lithuanian (lt)</td>
|
|
336
|
+
* <td>Lithuania (lt-LT)</td>
|
|
337
|
+
* </tr>
|
|
338
|
+
* <tr>
|
|
339
|
+
* <td>Latvian (lv)</td>
|
|
340
|
+
* <td>Latvia (lv-LV)</td>
|
|
341
|
+
* </tr>
|
|
342
|
+
* <tr>
|
|
343
|
+
* <td>Malay (ms)</td>
|
|
344
|
+
* <td>Malaysia (ms-MY)</td>
|
|
345
|
+
* </tr>
|
|
346
|
+
* <tr>
|
|
347
|
+
* <td>Maltese (mt)</td>
|
|
348
|
+
* <td>Malta (mt-MT)</td>
|
|
349
|
+
* </tr>
|
|
350
|
+
* <tr>
|
|
351
|
+
* <td>Polish (pl)</td>
|
|
352
|
+
* <td>Poland (pl-PL)</td>
|
|
353
|
+
* </tr>
|
|
354
|
+
* <tr>
|
|
355
|
+
* <td>Romanian (ro)</td>
|
|
356
|
+
* <td>Romania (ro-RO)</td>
|
|
357
|
+
* </tr>
|
|
358
|
+
* <tr>
|
|
359
|
+
* <td>Slovak (sk)</td>
|
|
360
|
+
* <td>Slovakia (sk-SK)</td>
|
|
361
|
+
* </tr>
|
|
362
|
+
* <tr>
|
|
363
|
+
* <td>Slovenian (sl)</td>
|
|
364
|
+
* <td>Slovenia (sl-SI)</td>
|
|
365
|
+
* </tr>
|
|
366
|
+
* <tr>
|
|
367
|
+
* <td>Albanian (sq)</td>
|
|
368
|
+
* <td>Albania (sq-AL)</td>
|
|
369
|
+
* </tr>
|
|
370
|
+
* <tr>
|
|
371
|
+
* <td>Thai (th)</td>
|
|
372
|
+
* <td>Thailand (th-TH)</td>
|
|
373
|
+
* </tr>
|
|
374
|
+
* <tr>
|
|
375
|
+
* <td>Turkish (tr)</td>
|
|
376
|
+
* <td>Turkey (tr-TR)</td>
|
|
377
|
+
* </tr>
|
|
378
|
+
* <tr>
|
|
379
|
+
* <td>Ukranian (uk)</td>
|
|
380
|
+
* <td>Ukraine (uk-UA)</td>
|
|
381
|
+
* </tr>
|
|
382
|
+
* <tr>
|
|
383
|
+
* <td>Vietnamese (vi)</td>
|
|
384
|
+
* <td>Vietnam (vi-VN)</td>
|
|
385
|
+
* </tr>
|
|
386
|
+
* </table>
|
|
387
|
+
* <p>
|
|
388
|
+
* <strong>Important language-only note!</strong> There are many language-only locales that can not be resolved
|
|
389
|
+
* <em>(i.e. the language is officially spoken in multiple countries)</em>.
|
|
390
|
+
* This method will return <code>null</code> for such locales. For example:
|
|
391
|
+
* </p>
|
|
392
|
+
* <ul>
|
|
393
|
+
* <li>English (en)</li>
|
|
394
|
+
* <li>French (fr)</li>
|
|
395
|
+
* <li>German (de)</li>
|
|
396
|
+
* <li>Dutch (nl)</li>
|
|
397
|
+
* <li>Spanish (es)</li>
|
|
398
|
+
* <li>Russian (ru)</li>
|
|
399
|
+
* <li>Arabic (ar)</li>
|
|
400
|
+
* <li>Farsi (fa)</li>
|
|
401
|
+
* <li>...</li>
|
|
402
|
+
* </ul>
|
|
403
|
+
* @param aLocale a Locale, typically a language-only Locale
|
|
404
|
+
* @return the corresponding locale with country, or null if no corresponding locale could be found
|
|
405
|
+
* @since Sitevision 6.1
|
|
406
|
+
*/
|
|
407
|
+
resolveCountryLocale(aLocale: unknown): unknown;
|
|
424
408
|
}
|
|
425
409
|
|
|
426
|
-
|
|
410
|
+
declare namespace LocaleUtil {}
|
|
411
|
+
|
|
412
|
+
declare var localeUtil: LocaleUtil;
|
|
413
|
+
|
|
414
|
+
export = localeUtil;
|