@alfresco/adf-core 8.1.0-16261404664 → 8.1.0-16266387720
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.
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
import { EnvironmentProviders, Provider } from '@angular/core';
|
|
18
|
+
export interface ProvideI18NConfig {
|
|
19
|
+
/**
|
|
20
|
+
* The default language to use for translations.
|
|
21
|
+
* If not provided, it defaults to 'en'.
|
|
22
|
+
*/
|
|
23
|
+
defaultLanguage?: string;
|
|
24
|
+
/**
|
|
25
|
+
* An array of assets to be used for i18n, where each asset is a tuple containing an identifier and a path.
|
|
26
|
+
* Example: [['en', '/assets/i18n/en.json'], ['fr', '/assets/i18n/fr.json']]
|
|
27
|
+
*/
|
|
28
|
+
assets?: [string, string][];
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Provides the i18n service.
|
|
32
|
+
* This function is used to provide the i18n service in the application.
|
|
33
|
+
* It is recommended to use this function in the top-level `AppModule` to ensure that the i18n service is available throughout the application.
|
|
34
|
+
*
|
|
35
|
+
* @param config - Configuration for the i18n service.
|
|
36
|
+
* @param config.assets - An array of assets to be used for i18n, where each asset is a tuple containing an identifier and a path.
|
|
37
|
+
* @returns An array of providers for the i18n service.
|
|
38
|
+
*/
|
|
39
|
+
export declare function provideI18N(config?: ProvideI18NConfig): (Provider | EnvironmentProviders)[];
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfresco/adf-core",
|
|
3
3
|
"description": "Alfresco ADF core",
|
|
4
|
-
"version": "8.1.0-
|
|
4
|
+
"version": "8.1.0-16266387720",
|
|
5
5
|
"author": "Hyland Software, Inc. and its affiliates",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
"@angular/router": ">=16.0.0",
|
|
64
64
|
"@mat-datetimepicker/core": ">=12.0.1",
|
|
65
65
|
"@ngx-translate/core": ">=16.0.0",
|
|
66
|
-
"@alfresco/js-api": ">=9.1.0-
|
|
67
|
-
"@alfresco/adf-extensions": ">=8.1.0-
|
|
66
|
+
"@alfresco/js-api": ">=9.1.0-16266387720",
|
|
67
|
+
"@alfresco/adf-extensions": ">=8.1.0-16266387720",
|
|
68
68
|
"minimatch": ">=10.0.0",
|
|
69
69
|
"pdfjs-dist": ">=3.3.122",
|
|
70
70
|
"ts-morph": ">=20.0.0"
|